mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix rollup hanging
This commit is contained in:
@ -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: {
|
||||
|
||||
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user