Skip to content

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

Open
mugeco wants to merge 1 commit intobabel:masterfrom
mugeco:master
Open

now extensions could be used in an array when using browserify cli#298
mugeco wants to merge 1 commit intobabel:masterfrom
mugeco:master

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.

1 participant