Skip to content

Commit

Permalink
update rollup to es script
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Jan 31, 2024
1 parent 89d8011 commit 331615e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const resolve = require('@rollup/plugin-node-resolve');
const babel = require("@rollup/plugin-babel");
const commonjs = require('@rollup/plugin-commonjs');
const terser = require('@rollup/plugin-terser');
const json = require('@rollup/plugin-json');
import resolve from '@rollup/plugin-node-resolve';
import babel from "@rollup/plugin-babel";
import commonjs from '@rollup/plugin-commonjs';
import terser from '@rollup/plugin-terser';
import json from '@rollup/plugin-json';

// rollup.config.js
/**
Expand All @@ -17,12 +17,13 @@ const config = {
inlineDynamicImports: true
},
plugins: [
resolve(),
resolve({ preferBuiltins: false}),
commonjs(),
babel({ exclude: 'node_modules/**', babelHelpers: "runtime", skipPreflightCheck: true }),
json({ namedExports: false, preferConst: true }),
terser()
],
};

module.exports.default = config;
const _default = config;
export { _default as default };

0 comments on commit 331615e

Please sign in to comment.