Miao-Yunzai/rollup.config.js

21 lines
411 B
JavaScript
Raw Normal View History

2024-06-09 01:31:31 +08:00
import typescript from '@rollup/plugin-typescript'
/**
* @type {import("rollup").RollupOptions}
*/
export default [
{
input: 'src/main.ts',
output: {
// file: 'index.js',
dir: 'dist',
format: 'module',
sourcemap: false
},
plugins: [typescript()],
onwarn: (warning, warn) => {
if (warning.code === 'UNRESOLVED_IMPORT') return
warn(warning)
}
}
]