Repository navigation
Safeguard the caching of Babel transpilations by disallowing .babelrc… - #8182
Conversation
… files. Also update the version of Babel to pick up a JSON-parsing fix. This was an issue that was discovered in the course of seeing how reading .babelrc files would interact badly with Atom's Babel cache. /cc @sebmck
|
Yeah, this seems like an appropriate patch. Although I'm not sure how widespread the usage of Babel is in the atom community but this would be a breaking change for those relying on |
|
There's not that much usage of Babel yet, and I doubt many (if any) use |
|
Sounds great -- thanks @thomasjo! |
|
@thomasjo Sounds good to me. I don't really mind what happens, flagging it just in case it's an issue 😊 |
|
Here's the list of packages that has a @bolinfest I guess we can ignore the nuclide packages from that list? |
|
@thomasjo Yes, all of the |
|
I don't know that much about Babel (yet), so I'm listing the contents of the two remaining {
"stage": 0,
"loose": true,
"sourceMap": "inline",
"blacklist": [
"es6.classes"
]
}(2) format: {
"stage": 2,
"loose": true
}Would it be problematic for those packages if we ship this PR? |
|
They're very likely using experimental syntax that is enabled via the |
We are using |
|
Hold up @sebmck, here are the options that are used in Atom today: So for
For
|
|
Ah my bad, I talked out of turn. Those other options are fine then.
This will break decorators and class properties which rely on the class desugaring. |
|
@sebmck Ah, good to know about @thomasjo It sounds like we're good to go! Without this fix, any file that is bundled in |
Safeguard the caching of Babel transpilations by disallowing .babelrc…
… files.
Also update the version of Babel to pick up a JSON-parsing fix. This was an
issue that was discovered in the course of seeing how reading .babelrc files
would interact badly with Atom's Babel cache.
/cc @sebmck