-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
SyntaxError: Unexpected token default #33
Comments
right, `default`` is a reserved keyword, my recommendation is to use a custom generated token when creating a local binding for the default export https://gist.github.com/mbostock/d7717d61446600938e47#file-build-js-L7 |
Yes, Rollup should not be generating a |
Ordinarily default exports are given a 'suggested' name by the first encountered module that imports them (i.e. |
This may or may not be related to #32. Here’s the test case:
https://gist.github.com/mbostock/d7717d61446600938e47
The problem is:
The text was updated successfully, but these errors were encountered: