Skip to content

配置文件

rollup 的配置文件是一个 JavaScript 文件,通常命名为 rollup.config.js

json
{
  "type": "module",
  "scripts": {
    "build": "rollup -c"
  }
}
js
export default {
  input: 'src/index.ts',
  output: {
    file: 'dist/bundle.js',
    format: 'es',
  },
}

基于 MIT 许可发布