-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
Milestone
Description
Imagine package.json
like this:
"browsers": {
"development": "last 1 version",
"production": "last 2 versions, > 5%"
}
The format is the same as browserslist.
Then, we would use this information both for Babel and Autoprefixer.
Autoprefixer already supports this format of browser configuration.
We could teach babel-preset-env to honor it too, or we could write a helper that translates browserslist
to its target
.
This would solve #435 with some optional configuration.
It would make rebuilds faster and also make output less mangled without introducing sourcemaps, helping work around #139.
fson, ingro, ffigiel, balanceiskey, hzoo and 33 morevasa-chi, jonny-no1, artalar, jonathantneal, mxmzb and 1 more