We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb864f8 commit e649789Copy full SHA for e649789
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/test.ts
@@ -77,7 +77,11 @@ export function getTestConfig(
77
vendor: {
78
name: 'vendor',
79
chunks: 'initial',
80
- test: /[\\/]node_modules[\\/]/,
+ test: (module: any, chunks: Array<{ name: string }>) => {
81
+ const moduleName = module.nameForCondition ? module.nameForCondition() : '';
82
+ return /[\\/]node_modules[\\/]/.test(moduleName)
83
+ && !chunks.some(({ name }) => name === 'polyfills');
84
+ },
85
},
86
87
0 commit comments