fix rollup hanging

This commit is contained in:
JellyBrick
2023-10-04 18:32:08 +09:00
parent 127e325b2b
commit 548f82ba0a
2 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,14 @@ export default defineConfig({
terser({
ecma: 2020,
}),
{
closeBundle() {
if (!process.env.ROLLUP_WATCH) {
setTimeout(() => process.exit(0));
}
},
name: 'force-close'
},
],
input: './index.ts',
output: {

View File

@ -35,6 +35,14 @@ export default defineConfig({
terser({
ecma: 2020,
}),
{
closeBundle() {
if (!process.env.ROLLUP_WATCH) {
setTimeout(() => process.exit(0));
}
},
name: 'force-close'
},
],
input: './preload.ts',
output: {