mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-19 20:19:05 +00:00
Avoid double builds
This commit is contained in:
@@ -93,8 +93,15 @@ export default async function ({ watch }) {
|
|||||||
assetFileNames: staticPath,
|
assetFileNames: staticPath,
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
clearScreen: false,
|
||||||
// Don't watch the ts files. Instead we watch the output from the ts compiler.
|
// Don't watch the ts files. Instead we watch the output from the ts compiler.
|
||||||
watch: { clearScreen: false, exclude: ['**/*.ts', '**/*.tsx'] },
|
exclude: ['**/*.ts', '**/*.tsx'],
|
||||||
|
// Sometimes TypeScript does its thing a little slowly, which causes
|
||||||
|
// Rollup to build twice on each change. This delay seems to fix it,
|
||||||
|
// although we may need to change this number over time.
|
||||||
|
buildDelay: 250,
|
||||||
|
},
|
||||||
preserveModules: true,
|
preserveModules: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
{ resolveFileUrl, resolveImportMeta },
|
{ resolveFileUrl, resolveImportMeta },
|
||||||
|
|||||||
Reference in New Issue
Block a user