Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Error for "export * as X from ..." #4177

Open
thheller opened this issue Jul 8, 2024 · 0 comments
Open

Parse Error for "export * as X from ..." #4177

thheller opened this issue Jul 8, 2024 · 0 comments

Comments

@thheller
Copy link

thheller commented Jul 8, 2024

test.js

export * as boom from "./a.js";

running npx google-closure-compiler --js test.js (Version 20240317.0.0) leads to

test.js:1:9: ERROR - [JSC_PARSE_ERROR] Parse error. 'from' expected
  1| export * as boom from "./a.js";
              ^

1 error(s), 0 warning(s)

I didn't know this existed, but apparently some npm packages use it and it breaks compilation with shadow-cljs, see thheller/shadow-cljs#1190.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant