diff --git a/packages/@angular/cli/models/webpack-configs/test.ts b/packages/@angular/cli/models/webpack-configs/test.ts index 29053597520e..6405b8b8afad 100644 --- a/packages/@angular/cli/models/webpack-configs/test.ts +++ b/packages/@angular/cli/models/webpack-configs/test.ts @@ -42,6 +42,7 @@ export function getTestConfig(testConfig: WebpackTestOptions) { extraRules.push({ test: /\.(js|ts)$/, loader: 'istanbul-instrumenter-loader', + options: { esModules: true }, enforce: 'post', exclude });