import resolve from '@rollup/plugin-node-resolve' import { terser } from 'rollup-plugin-terser' import { injectManifest } from 'rollup-plugin-workbox' const workboxConfig = require('./workbox-config') export default { input: 'src/js/index.js', output: { file: 'dist/js/bundle.js', format: 'esm' }, plugins: [ injectManifest(workboxConfig), resolve(), terser() ] }