Skip to content

Commit f68f60f

Browse files
committed
housekeeping: webpack@4 + babel@7 (via #1455)
* prettier * babel@7 * jest@24 * install @babel/register * webpack@4 * use new scripts * remove unused PARAMETER_BUILDERS assignment this was from the original 3.0.0 commit, and has never worked! * standardize webpack umd flag * fix test setup config pointer * update babel runtime pkg name * use default export in Webpack * drop babel-plugin-add-module-exports
1 parent 2f262c6 commit f68f60f

File tree

11 files changed

+10815
-6557
lines changed

11 files changed

+10815
-6557
lines changed

.babelrc

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
{
22
"presets": [
33
[
4-
"es2015",
5-
"stage-3"
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
/* benefit of C/S/FF/Edge only? */
9+
"> 1%",
10+
"last 2 versions",
11+
"Firefox ESR",
12+
"not dead"
13+
],
14+
"node": "8"
15+
},
16+
"useBuiltIns": "entry",
17+
"corejs": "2"
18+
}
619
]
720
],
821
"plugins": [
9-
"add-module-exports",
10-
"transform-runtime",
11-
"transform-object-rest-spread",
12-
"transform-async-to-generator"
13-
],
14-
"env": {
15-
"test": {
16-
"presets": ["es2015"]
17-
},
18-
"dev": {
19-
"presets": [
20-
["env", {
21-
"targets": {
22-
"chrome": "60"
23-
}
24-
}]
25-
],
26-
"plugins": [
27-
"transform-runtime",
28-
"transform-object-rest-spread",
29-
"babel-plugin-transform-es2015-destructuring"
30-
],
31-
}
32-
}
22+
[
23+
"@babel/plugin-transform-runtime",
24+
{
25+
"corejs": 2
26+
}
27+
],
28+
"@babel/plugin-proposal-object-rest-spread",
29+
"@babel/plugin-transform-async-to-generator",
30+
"@babel/plugin-transform-destructuring"
31+
]
3332
}

.prettierrc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semi: false
2+
trailingComma: es5
3+
endOfLine: lf
4+
requirePragma: true
5+
insertPragma: true

0 commit comments

Comments
 (0)