Skip to content

Commit

Permalink
Fixes visjs#72 - toArray issue IE11. Babel not working.
Browse files Browse the repository at this point in the history
- Restore .babelrc file because there are more things using Babel than Rollup.
- Configure rollup to exclude .babelrc files. Ref: https://github.com/rollup/rollup-plugin-babel#external-dependencies
  • Loading branch information
jasonex7 committed Sep 18, 2019
1 parent 3cf2929 commit 531691d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
["@babel/preset-env", {
"targets": "> 0.1% or not dead"
}]
],
"plugins": ["css-modules-transform"]
}
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const copyStatic = copy({
});

const babelConfig = {
babelrc: false,
exclude: [/\/core-js\//],
presets: [
[
Expand Down

0 comments on commit 531691d

Please sign in to comment.