-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Feature Request : Package.json Babel RC support (instead of .babelrc) #762
Comments
Thoughts on this? |
On 1.5.1 configuring babel through package.json works for me. Do you have an example config which fails? |
Ok, on 1.5.1 it works, but on current master this was removed with #559. |
Why was this removed? How can I use babel-stage-2 or stage-0 or any other babel preset with 1.6? |
A babel rc file ATM.
Yeah, I would really like this added back, package Json is an acceptable place for babel settings almost everywhere else in the ecosystem. Parcel should accommodate.
…Sent from my iPhone
On Feb 15, 2018, at 11:34 PM, Steven Scaffidi ***@***.***> wrote:
Why was this removed? How can I use babel-stage-2 or stage-0 or any other babel preset with 1.6?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@SilentCicero how did you get this to work with a babelrc file? I tried the babelrc file approach and it still blew up when trying to use features that required stage-2. I went back to 1.5 and everything works. |
Isn't stage 0/1 further ahead than stage 2?
Maybe a deer ate issue.
…Sent from my iPhone
On Feb 16, 2018, at 6:33 AM, Steven Scaffidi ***@***.***> wrote:
@SilentCicero how did you get this to work with a babelrc file? I tried the babelrc file approach and it still blew up when trying to use features that required stage-2. I went back to 1.5 and everything works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@SilentCicero yes. My project is just using stage-2 though and I'm unable to use any stage-2 features. From what I understand of the 1.6 release notes, babel-preset-env is automatic but how do I add to that? |
Babel config in package.json should already work. See: parcel/src/transforms/babel.js Lines 193 to 199 in 595252c
|
See #927 for an example of babel config in package.json not working |
Parcel is awesome.
I would love if I could just use the
package.json
to specify my.babelrc
settings. Currently, that doesn't seem to be supported, and I'm forced to include an additional.babelrc
file. I hate those little files. Any chance this could be an option like in webpack?The text was updated successfully, but these errors were encountered: