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

babelify + esmify error #21

Open
nichoth opened this issue Aug 16, 2021 · 0 comments
Open

babelify + esmify error #21

nichoth opened this issue Aug 16, 2021 · 0 comments

Comments

@nichoth
Copy link

nichoth commented Aug 16, 2021

Not sure which project to file this bug under.

I made a demonstration repo -- https://github.com/nichoth/breact/blob/broke/src/index.js . This is the branch that uses esmify + babelify, & it doesn't work. The only difference between it and the main branch is that this one uses import, and the other uses require

Running the build script return this error:

SyntaxError: /Users/nick/code/breact/src/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (7:12):

The main branch uses require statements instead of import, and it works.

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