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

transform js files only, preventing conflicts with other input source files #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kketch
Copy link

@kketch kketch commented Nov 12, 2015

Currently es3ify check the file name to filter JSON file (as it can't and should not transform them).
I assume this was done to fix browserify crashes with this transform. But it dit not resolve the issue for other input files.
es3ify should try to transform javascript file only, so a more permanent fix seems to ignore anything else

@rstacruz
Copy link
Contributor

how would this affect, say, browserify -t [ babelify --extensions jsx ] ?

@kketch
Copy link
Author

kketch commented Jan 22, 2016

I don't use jsx but I suspect that with this change the es3ify transform will not be applied to jsx files. It will change the current behavior of es3ify. To prevent this we could test also the jsx extension by default, or/and add an "extensions" option like babelify and many other transforms does

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

Successfully merging this pull request may close these issues.

2 participants