-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
The create-react-app project recommends publishing all modules to npm as ES5. See https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify.
/lib/ not being ES5 is causing a problem when I try to use coffeescript as a library in my create-react-app based webapp. To be clear, I'm making something like the "Try Coffeescript" tab on coffeescript.org, not just trying to use Coffeescript to write the app itself in.
To reproduce the issue, see https://github.com/jaredp/cs2-as-a-library-demo. The commits are:
- a clean
create-react-app+npm eject - adding support for
coffeescript+coffee-loaderin webpack - using Coffeescript as a library to live compile CS2 code for the user of cs2-as-a-library-demo
At the 3rd commit, npm build fails, even though npm start (dev mode) works.
Reactions are currently unavailable