(chunkInfo)
| 50 | preserveModulesRoot: 'source', |
| 51 | assetFileNames: '[name][extname]', // For CSS |
| 52 | entryFileNames(chunkInfo) { |
| 53 | if (chunkInfo.name.includes('node_modules')) { |
| 54 | const cleanName = chunkInfo.name |
| 55 | .split('/') |
| 56 | .filter(part => !noise.has(part)) |
| 57 | .join('-'); |
| 58 | return `npm/${cleanName}.js`; |
| 59 | } |
| 60 | |
| 61 | return chunkInfo.name.replace('build/__snapshots__/', '') + '.js'; |
| 62 | }, |
| 63 | }, |
| 64 | watch: { |
| 65 | clearScreen: false, |