Is babelrc being ignored?
See original GitHub issueChoose one: is this a ๐ bug report or ๐ feature request?
This is possibly a bug.
๐ Configuration (.babelrc, package.json, cli command)
.babelrc
{
"presets": ["env"]
}
.browserslistrc
last 1 Firefox versions
๐ค Expected Behavior
regeneratorRuntime shouldnโt be used since Iโm targeting only the most recent Firefox version, which natively supports async/await.
๐ฏ Current Behavior
ReferenceError: regeneratorRuntime is not defined
๐ฆ Context
Using babel-polyfill works, but since Iโm creating a Firefox extension targeting the most recent version of Firefox, I donโt want to transform async/await.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
babelrc.js is being ignored ยท Issue #780 - GitHub
I'm submitting a bug report. Webpack Version: 4.29.6. Babel Core Version: 7.4.0. Babel Loader Version: 8.0.5.
Read more >babelrc ignore field seems to be ignored - Stack Overflow
When I compile it with babel src --out-dir dist , the src folder is still compiled onto the dist folder. However, when I...
Read more >Options - Babel.js
Options like "test" , "exclude" , and "ignore" require the filename for string/RegExp matching. .babelrc.json or .babelrc files are loaded relative to the...
Read more >renewcommand being ignored when babel is loaded - TeX
User @daleif postet a working example to the comments. I'll just copy it here for better readibility: babel overwrites at begin document.
Read more >Advanced Features: Customizing Babel Config - Next.js
To start, you only need to define a .babelrc file (or babel.config.js ) at the top of your app. If such a file...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I encountered a similar problem. It looks like that Parcel (or Babel?) ignores .browserslistrc It should work when you add the query directly into .babelrc
But why do you use Babel at all when you target a modern browser?
To disable Babel you remove the .babelrc file
Do you use the --no-cache option when you build the project?
parcel build --no-cache ....
With the cache Parcel does not pick up configuration changes when the code did not change.