diff --git a/package_template.json b/package_template.json index 1dec15b8..a8db48d6 100644 --- a/package_template.json +++ b/package_template.json @@ -33,11 +33,11 @@ "@babel/plugin-transform-runtime": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/runtime": "^7.0.0", - "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-babel": "^5.0.0", + "@rollup/plugin-commonjs": "^12.0.0", "@rollup/plugin-node-resolve": "^7.0.0", "@rollup/plugin-replace": "^2.2.0", - "rollup": "^2.0.0", - "rollup-plugin-babel": "^4.0.2", + "rollup": "^2.3.4", "rollup-plugin-svelte": "^5.0.1", "rollup-plugin-terser": "^5.3.0" } diff --git a/rollup.config.js b/rollup.config.js index e5f51ad3..5a255ec6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,7 +2,7 @@ import resolve from '@rollup/plugin-node-resolve'; import replace from '@rollup/plugin-replace'; import commonjs from '@rollup/plugin-commonjs'; import svelte from 'rollup-plugin-svelte'; -import babel from 'rollup-plugin-babel'; +import babel from '@rollup/plugin-babel'; import { terser } from 'rollup-plugin-terser'; import config from 'sapper/config/rollup.js'; import pkg from './package.json'; @@ -35,7 +35,7 @@ export default { legacy && babel({ extensions: ['.js', '.mjs', '.html', '.svelte'], - runtimeHelpers: true, + babelHelpers: 'runtime', exclude: ['node_modules/@babel/**'], presets: [ ['@babel/preset-env', { @@ -55,6 +55,7 @@ export default { }) ], + preserveEntrySignatures: false, onwarn, },