Skip to content

Commit d772d6b

Browse files
committed
Update build toolchain to Babel 7.0
Rollup is useful for bundling several source files together, but for single file builds we can just use Babel directly and avoid an extra dependency.
1 parent eff18ea commit d772d6b

File tree

4 files changed

+1838
-2943
lines changed

4 files changed

+1838
-2943
lines changed

.babelrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"esm": {
4+
"presets": [
5+
["@babel/env", {"modules": false}],
6+
"@babel/flow"
7+
]
8+
},
9+
"umd": {
10+
"plugins": [
11+
"@babel/plugin-transform-modules-umd"
12+
],
13+
"presets": ["@babel/env", "@babel/flow"]
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)