closure-compiler icon indicating copy to clipboard operation
closure-compiler copied to clipboard

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

Open thheller opened this issue 1 year ago • 0 comments

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 https://github.com/thheller/shadow-cljs/issues/1190.

thheller avatar Jul 08 '24 13:07 thheller