Replies: 1 comment
-
Yeah, this seems to happen with @rollup/plugin-terser as well, when setting the [ Error [SyntaxError]: Unexpected token: keyword (with)
at js_error (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:404:11)
at croak (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1128:9)
at token_error (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1136:9)
at unexpected (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1142:9)
at semicolon (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1180:56)
at statement (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1249:17)
at _embed_tokens_wrapper (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:1193:26)
at parse_toplevel (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:3465:23)
at parse (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/parse.js:3478:7)
at minify (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/node_modules/terser/lib/minify.js:225:42) {
filename: '0',
line: 1,
col: 51,
pos: 51,
code: 'PLUGIN_ERROR',
plugin: 'terser',
hook: 'renderChunk'
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior
No Errors
Actual Behavior
(I am trying with ' --importAttributesKey with' too)
same config js file works
Additional Information
node v20 -> works, v22 -> errors
import pkg from './package.json' with { type: 'json' }
rollup/rollup#5685
Beta Was this translation helpful? Give feedback.
All reactions