Skip to content

Commit 6397d91

Browse files
hmillisontimdorr
authored andcommitted
Updates to build for babel-preset-env (#2696)
* Updates to build for babel-preset-env * Fixes for regenerator stuff in the output. Waiting on rollup/rollup-plugin-babel#100 and rollup/rollup#1595
1 parent 766cd5f commit 6397d91

File tree

4 files changed

+286
-99
lines changed

4 files changed

+286
-99
lines changed

.babelrc

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
"ie >= 11"
9+
]
10+
},
11+
"exclude": ["transform-async-to-generator", "transform-regenerator"],
12+
"modules": false,
13+
"loose": true
14+
}
15+
]
16+
],
217
"plugins": [
3-
["transform-es2015-template-literals", { "loose": true }],
4-
"transform-es2015-literals",
5-
"transform-es2015-function-name",
6-
"transform-es2015-arrow-functions",
7-
"transform-es2015-block-scoped-functions",
8-
["transform-es2015-classes", { "loose": true }],
9-
"transform-es2015-object-super",
10-
"transform-es2015-shorthand-properties",
11-
["transform-es2015-computed-properties", { "loose": true }],
12-
["transform-es2015-for-of", { "loose": true }],
13-
"transform-es2015-sticky-regex",
14-
"transform-es2015-unicode-regex",
15-
"check-es2015-constants",
16-
["transform-es2015-spread", { "loose": true }],
17-
"transform-es2015-parameters",
18-
["transform-es2015-destructuring", { "loose": true }],
19-
"transform-es2015-block-scoping",
20-
"transform-object-rest-spread",
21-
"transform-es3-member-expression-literals",
22-
"transform-es3-property-literals"
18+
"transform-object-rest-spread"
2319
],
2420
"env": {
2521
"commonjs": {
26-
"plugins": [
27-
["transform-es2015-modules-commonjs", { "loose": true }]
22+
"presets": [
23+
[
24+
"env",
25+
{
26+
"loose": true
27+
}
28+
]
2829
]
2930
},
3031
"es": {

0 commit comments

Comments
 (0)