Skip to content
npm i -D rollup
js
// rollup.config.mjs
export default {
  input: './src/index.js',
  output: {
    file: './dist/bundle.js',
    format: 'cjs'
  }
}
json
// package.json
{
  "scripts": {
    "build": "rollup -c -w"
  }
}