mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-19 12:08:57 +00:00
Avoid double builds
This commit is contained in:
@@ -93,8 +93,15 @@ export default async function ({ watch }) {
|
||||
assetFileNames: staticPath,
|
||||
exports: 'named',
|
||||
},
|
||||
watch: {
|
||||
clearScreen: false,
|
||||
// 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,
|
||||
plugins: [
|
||||
{ resolveFileUrl, resolveImportMeta },
|
||||
|
||||
Reference in New Issue
Block a user