question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request : Package.json Babel RC support (instead of .babelrc)

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SilentCicerocommented, Feb 15, 2018

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 notifications@github.com 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.

0reactions
hrldcprcommented, Apr 2, 2018

See #927 for an example of babel config in package.json not working

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Babel
Create a file called .babelrc.json with the following content in your project. ... .babelrc.json config from within package.json using the babel key like...
Read more >
Allow babelrc: false and/or babel.config.js · Issue #2110 - GitHub
feature request Hey, Since Babel 7, it is common to use a babel.config.js file, or the babelrc: false option. Why?
Read more >
When to use babel.config.js and .babelrc - Stack Overflow
config.json is useful if you have multiple packages (ie multiple package.json) directories in your project that utilize a single babel config.
Read more >
babel-loader - npm
babelrc file if it exists, and the value of the environment variable BABEL_ENV with a fallback to the NODE_ENV environment variable. This can...
Read more >
Tooling - styled-components
⚠️ The plugin call order in your .babelrc file matters. If you're using the env property in your babel configuration, then putting this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found