You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[!] (plugin commonjs--resolver) RollupError: Unexpected token `.`. Expected * for generator, private key, identifier or async
index.js (2:10)
1: class Foo {
2: global;
^
3: }
4: exports = Foo
at error (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/parseAst.js:279:30)
at parseError (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/parseAst.js:1041:9)
at convertNode (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/parseAst.js:2130:12)
at convertProgram (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/parseAst.js:1034:12)
at Object.parseAstAsync (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/parseAst.js:2181:12)
at Module.tryParseAsync (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/rollup.js:15008:20)
at Module.setSource (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/rollup.js:14589:35)
at ModuleLoader.addModuleSource (/home/fire/source/js/test-rollup/node_modules/.pnpm/rollup@4.11.0/node_modules/rollup/dist/shared/rollup.js:18937:13)
Additional Information
Code compiles without the plugin enabled.
The text was updated successfully, but these errors were encountered:
Expected Behavior
Compile normally.
Actual Behavior
Compilation fails from a parsing error:
Additional Information
Code compiles without the plugin enabled.
The text was updated successfully, but these errors were encountered: