Extensions does not work with a quote delimited string.#2436
Extensions does not work with a quote delimited string.#2436ryanpcmcquen wants to merge 1 commit intobabel:mainfrom
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
.tsfiles alongside.jsfiles, passing a quote delimited string to--extensions, causes Babel to ignore plain.jsfiles:Commands are as follows:
There may be other areas that need to be updated ... or perhaps this is just a bug?