diff --git a/app/angular/src/server/framework-preset-angular-cli.test.ts b/app/angular/src/server/framework-preset-angular-cli.test.ts index 8dfbc75c02cc..b5e1b86eee2b 100644 --- a/app/angular/src/server/framework-preset-angular-cli.test.ts +++ b/app/angular/src/server/framework-preset-angular-cli.test.ts @@ -793,7 +793,7 @@ const newWebpackConfiguration = ( rules: [{ keepBaseRule: true } as any], }, resolve: { - extensions: ['.cjs', '.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'], + extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx', '.json', '.cjs'], modules: ['node_modules'], mainFields: ['browser', 'main'], alias: { diff --git a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts index 3c62280ea227..66c2fbee4def 100644 --- a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts @@ -233,7 +233,7 @@ export default async (options: Options & Record): Promise): Promise