Skip to content

Commit

Permalink
Add babel step to lib build
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Aug 3, 2022
1 parent d881095 commit fa059ce
Show file tree
Hide file tree
Showing 4 changed files with 988 additions and 17 deletions.
3 changes: 3 additions & 0 deletions lib/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
2 changes: 2 additions & 0 deletions lib/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styles from 'rollup-plugin-styles';
import { terser } from 'rollup-plugin-terser';
import { string } from 'rollup-plugin-string';
import image from '@rollup/plugin-image';
import { babel } from '@rollup/plugin-babel';

export default {
input: 'lib/index.js',
Expand Down Expand Up @@ -37,6 +38,7 @@ export default {
mode: 'extract',
}),
commonjs(),
babel({ babelHelpers: 'bundled' }),
terser(),
],
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"popper.js": "1.x"
},
"devDependencies": {
"@babel/cli": "^7.18.10",
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-image": "^2.1.1",
"@rollup/plugin-json": "^4.1.0",
Expand Down
Loading

0 comments on commit fa059ce

Please sign in to comment.