4 ms·
Babel compiles whatever you tell it to, and each piece of syntax is a separate plugin. For `babel-preset-env` specifically, it compiles whatever syntax is not
by acemarke 7y ago
Babel compiles whatever you tell it to, and each piece of syntax is a separate plugin.
For `babel-preset-env` specifically, it compiles whatever syntax is not natively supported by the browser versions you told it to target.
So, compiling `async/await` and compiling ES module syntax are separate things.
- developit 7y agoThere are a few cases where syntax compilation is split up cleanly, but when you dig into the internals of preset-env, transforms are rarely that isolated. That being said, "watch this space"...