Use babel to support old browser versions up to firefox 52

This commit is contained in:
2023-09-19 14:35:35 +02:00
parent 0063851ef5
commit c9754fafec
4 changed files with 2159 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import resolve, { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import livereload from 'rollup-plugin-livereload';
import terser from '@rollup/plugin-terser';
import babel from '@rollup/plugin-babel'
const production = !process.env.ROLLUP_WATCH;
@@ -37,6 +38,11 @@ export default [
emitCss: false,
}),
babel({
extensions: [".js", ".html", ".svelte"],
babelHelpers: "bundled",
}),
// If you have external dependencies installed from
// npm, you'll most likely need these plugins. In
// some cases you'll need additional configuration -