Comments (2)
babel-preset-env doesn't do anything to transform-runtime right now. That's why it's always being transformed (not polyfilled). You need to use babel-polyfill if you want to take advantage of it atm.
https://github.com/babel/babel-preset-env#usebuiltins
from babel-preset-env.
@hzoo interesting, so do you know why the transforms do change based on the targets in babel-preset-env
?
Ex: removing { chrome: 55 }
, will result in the following files being required:
import _Promise from 'babel-runtime/core-js/promise';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
Edit: nvm, i guess that's just part of the transforms
from babel-preset-env.
Related Issues (20)
- Import instead of require for es6.promise HOT 6
- Polyfills included two times for two passes (not idempotent) HOT 3
- Feature: Precompile dependencies based on their engines HOT 2
- r
- env@2: `debug: true` fails with Invalid Version: false.0.0 HOT 5
- includes function not work in dynamic param HOT 2
- Issues and Babel monorepo HOT 2
- useBuiltins: "usage" appears not to work HOT 7
- babel-preset-env not support the module.exports,what should i do? HOT 2
- "Using targets" appears to exclude `"browserslist"` targets HOT 2
- debug/warn/error info should go to console.error HOT 2
- 关于Openld与使用Op.RP HOT 1
- iCloud可实现锁定🔒 HOT 1
- i use a few of new features that do not support, but it installed all polyfill. HOT 9
- useBuiltIns not working when `babel-polyfill` is within a try/catch HOT 1
- Ffhu HOT 2
- npm WARN deprecated [email protected]: We're super 😸 excited that you're HOT 3
- Mixed bundle output, ES modules and AMD
- Polyfill - usage HOT 1
- PSA: this repo has been moved to the main babel repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-preset-env.