-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Extensions does not work with a quote delimited string. #2436
base: main
Are you sure you want to change the base?
Conversation
✔️ Deploy preview for babel ready! 🔨 Explore the source changes: 46b65b0 🔍 Inspect the deploy logs: https://app.netlify.com/sites/babel/deploys/5ff18b73d474df00076cae31 😎 Browse the preview: https://deploy-preview-2436--babel.netlify.app |
Here is an exact commit where this can be repro'd: |
I don't think we have to change
or
See also https://github.com/tj/commander.js/#variadic-option |
Well, this works:
This does not:
And this does not:
Despite comma separated strings not being supported, they have propagated well across the internet, even landing in an official Microsoft project promoting Babel with TypeScript:
They are on Microsoft's site as well: https://devblogs.microsoft.com/typescript/typescript-and-babel-7/ Other various sites have picked up on this syntax now for it to become somewhat idiomatic ... since the quote delimiting is superfluous, is there any reason to keep it in the documentation? |
We'll then need a new tests to make sure that comma separated extensions don't accidentally stop working. |
Thanks for the reproduction repo. However, I can not reproduce this issue:
In your case, the
I was wrong. Babel does support comma separated |
As I discovered in my own project. When using
.ts
files alongside.js
files, passing a quote delimited string to--extensions
, causes Babel to ignore plain.js
files:Commands are as follows:
There may be other areas that need to be updated ... or perhaps this is just a bug?