import { nodeResolve } from '@rollup/plugin-node-resolve'; import replace from '@rollup/plugin-replace'; import { terser } from 'rollup-plugin-terser'; export default { input: "main.js", output: [ { file: "../../debug/popperjs.js", format: "esm", compact: false, }, { file: "../../release/popperjs.js", format: "esm", compact: true, plugins: [terser()] } ], plugins: [ nodeResolve(), replace({ "preventAssignment": true, "values": { "process.env.NODE_ENV": JSON.stringify('production') } }), ] }