babelify + esmify error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 119
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the demonstration repository's src/index.js and compare the broke branch with main, then run the build script to reproduce the JSX syntax error. Trace how esmify and babelify handle the import-based entry point; done means the import version builds successfully without the reported experimental-syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100