mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix rollup hanging
This commit is contained in:
@ -40,6 +40,14 @@ export default defineConfig({
|
|||||||
terser({
|
terser({
|
||||||
ecma: 2020,
|
ecma: 2020,
|
||||||
}),
|
}),
|
||||||
|
{
|
||||||
|
closeBundle() {
|
||||||
|
if (!process.env.ROLLUP_WATCH) {
|
||||||
|
setTimeout(() => process.exit(0));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: 'force-close'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
input: './index.ts',
|
input: './index.ts',
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
@ -35,6 +35,14 @@ export default defineConfig({
|
|||||||
terser({
|
terser({
|
||||||
ecma: 2020,
|
ecma: 2020,
|
||||||
}),
|
}),
|
||||||
|
{
|
||||||
|
closeBundle() {
|
||||||
|
if (!process.env.ROLLUP_WATCH) {
|
||||||
|
setTimeout(() => process.exit(0));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: 'force-close'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
input: './preload.ts',
|
input: './preload.ts',
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
Reference in New Issue
Block a user