Skip to content

Commit

Permalink
Migrate rollup-plugin-babel to @rollup/plugin-babel (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogebrd authored Oct 16, 2020
1 parent b9d3785 commit deab46d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"devDependencies": {
"@babel/core": "^7.12.0",
"@babel/preset-env": "^7.12.0",
"@rollup/plugin-babel": "^5.2.1",
"eslint": "^7.11.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.1",
"express": "^4.17.1",
"rollup": "^2.30.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^7.0.2"
},
"dependencies": {
Expand All @@ -35,4 +35,4 @@
"bugs": {
"url": "https://github.com/rogebrd/dropbox-oauth-popup/issues"
}
}
}
10 changes: 7 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import babel from 'rollup-plugin-babel';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';

const umd = {
Expand All @@ -13,7 +13,9 @@ const umd = {
},
},
plugins: [
babel(),
babel({
babelHelpers: 'bundled',
}),
],
external: ['dropbox'],
};
Expand All @@ -30,7 +32,9 @@ const umdMin = {
},
},
plugins: [
babel(),
babel({
babelHelpers: 'bundled',
}),
terser(),
],
external: ['dropbox'],
Expand Down

0 comments on commit deab46d

Please sign in to comment.