Description
We are transpiling two bundles, one for es6 and another for old browsers. Currently, we use babel-env
with the targests.esmodule
option, but the babel guys are working on an improved version:
User Stories
As a Frontity user
I want to get the best performance possible out of my es6 bundles by default
so that my site loads fast in modern browsers
Possible solution
Just switch to babel-preset-modules
when target === "module"
in our babel file: