Skip to content

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

@thheller

Description

@thheller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions