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