-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
🐛 bug report
Calling parcel build <entry point> with all default configuration results in a warning from @babel/preset-env.
🎛 Configuration (.babelrc, package.json, cli command)
.babelrc:
nonepackage.json:
{
"name": "test",
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"parcel-bundler": "^1.12.2"
}
}
- CLI command:
yarn run parcel build src/index.html
🤔 Expected Behavior
The build should complete with no errors or warnings
😯 Current Behavior
The build completes, but it emits the following warning:
With `useBuiltIns` option, required direct setting of `corejs` option
💁 Possible Solution
This warning appears to come from @babel/preset-env. It seems like it might be possible to avoid by specifying corejs appropriately in transforms/babel.js
🔦 Context
I'm trying to bootstrap a project which requires no extra configuration than what Parcel comes with out of the box. It would be helpful for this warning to be resolved without having to add extra non-functional Babel configuration (several attempts at configuring correctly have failed).
💻 Code Sample
The following files with the addition of the above configuration should be enough to reproduce the issue.
src/index.html:
<!DOCTYPE html>
<html>
<body>
<div id="root">test</div>
<script src="./index.js"></script>
</body>
</html>
src/index.js:
document.getElementById('root').append('more test')
🌍 Your Environment
| Software | Version(s) |
|---|---|
| Parcel | 1.12.2 |
| Node | 11.9.0 |
| npm/Yarn | 1.13.0 |
| Operating System | macOS 10.14.3 |