Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit ddf7edd

Browse files
amitporthansl
authored andcommitted
fix(@angular-devkit/build-angular): support mjs extension
fix for angular/angular-cli#10744
1 parent dec89d7 commit ddf7edd

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-1
lines changed

Diff for: packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
237237
mode: buildOptions.optimization ? 'production' : 'development',
238238
devtool: false,
239239
resolve: {
240-
extensions: ['.ts', '.js'],
240+
extensions: ['.ts', '.mjs', '.js'],
241241
symlinks: !buildOptions.preserveSymlinks,
242242
modules: [
243243
wco.tsConfig.options.baseUrl || projectRoot,

0 commit comments

Comments
 (0)