mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
- Update dependencies in package.json - Modify the input file in rollup.config.mjs - Update tsconfig.json with new configuration options
29 lines
618 B
JavaScript
29 lines
618 B
JavaScript
import resolve from '@rollup/plugin-node-resolve'
|
|
import terser from '@rollup/plugin-terser'
|
|
import typescript from '@rollup/plugin-typescript'
|
|
|
|
export default {
|
|
input: './assets/ts/main.tsx',
|
|
output: {
|
|
dir: './static/bundled/js',
|
|
format: 'es',
|
|
chunkFileNames: '[hash:6].js',
|
|
compact: true
|
|
},
|
|
plugins: [
|
|
resolve({
|
|
moduleDirectories: ['node_modules']
|
|
}),
|
|
typescript({ tsconfig: './tsconfig.json' }),
|
|
process.env.BUILD === 'production' &&
|
|
terser({
|
|
compress: {
|
|
passes: 3
|
|
},
|
|
output: {
|
|
comments: false
|
|
}
|
|
})
|
|
]
|
|
}
|