Open chrisdostert opened 6 years ago
Hello, this is an extremely helpful library & thanks for publishing it.
One ask if you'd be open to it; I can't run it through create-react-app without getting this warning .
The suggestion is basically saying npm projects should publish compiled/transpiled browser friendly assets to /lib but keep source in /src.
/lib
/src
Would you be open to this?
the following should accomplish it:
add .babelrc
{ "presets": ["env"] }
run babel pre-publish to generate /lib
babel src --out-dir=lib
Cheers!
Hello, this is an extremely helpful library & thanks for publishing it.
One ask if you'd be open to it; I can't run it through create-react-app without getting this warning .
The suggestion is basically saying npm projects should publish compiled/transpiled browser friendly assets to
/lib
but keep source in/src
.Would you be open to this?
the following should accomplish it:
add .babelrc
run babel pre-publish to generate /lib
Cheers!