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

now extensions could be used in an array when using browserify cli #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mugeco
Copy link

@mugeco mugeco commented Aug 6, 2021

Got a

if (extensions.indexOf(extname) === -1) { TypeError: extensions.indexOf is not a function

at babelify/index.js:75 when using Browserify CLI like this:

[ babelify --presets [ @babel/preset-env @babel/preset-react ] --extensions [ .tsx .js .ts ] --plugins [ @babel/plugin-proposal-class-properties @babel/transform-runtime] ]

My PR should fix it.

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.

None yet

1 participant