From 4ba5a9f59ed0b930ed8a356031139c311df1f89c Mon Sep 17 00:00:00 2001 From: Amit Portnoy <1131991+amitport@users.noreply.github.com> Date: Mon, 14 May 2018 08:09:56 +0300 Subject: [PATCH] fix(@angular-devkit/build-angular): support mjs extension fix for https://github.com/angular/angular-cli/issues/10744 --- .../src/angular-cli-files/models/webpack-configs/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts index d34b783cf9..76b4709277 100644 --- a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts +++ b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts @@ -237,7 +237,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) { mode: buildOptions.optimization ? 'production' : 'development', devtool: false, resolve: { - extensions: ['.ts', '.js'], + extensions: ['.ts', '.mjs', '.js'], symlinks: !buildOptions.preserveSymlinks, modules: [ wco.tsConfig.options.baseUrl || projectRoot,