Skip to content

Commit 8206510

Browse files
committed
Add babel to build process
1 parent 69cfaf7 commit 8206510

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false
7+
}
8+
]
9+
],
10+
"plugins": [
11+
"external-helpers"
12+
]
13+
}

rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Import dependencies.
22
import resolve from 'rollup-plugin-node-resolve';
33
import commonjs from 'rollup-plugin-commonjs';
4+
import babel from 'rollup-plugin-babel';
45
import pkg from './package.json';
56

67
function banner() {
@@ -32,6 +33,7 @@ export default [
3233
plugins: [
3334
resolve(),
3435
commonjs(),
36+
babel({ exclude: 'node_modules/**' }),
3537
banner()
3638
]
3739
},
@@ -56,6 +58,7 @@ export default [
5658
plugins: [
5759
resolve(),
5860
commonjs(),
61+
babel({ exclude: 'node_modules/**' }),
5962
banner()
6063
]
6164
}

0 commit comments

Comments
 (0)