Skip to content

Commit 6046e06

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular-devkit/build-angular): correctly resolve core-js/proposals/reflect-metadata
Closes #22443 (cherry picked from commit a5e375c)
1 parent de68daa commit 6046e06

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
125125
}
126126

127127
if (!buildOptions.aot) {
128-
const jitPolyfills = 'core-js/proposals/reflect-metadata';
128+
const jitPolyfills = require.resolve('core-js/proposals/reflect-metadata');
129129
if (entryPoints['polyfills']) {
130130
entryPoints['polyfills'].push(jitPolyfills);
131131
} else {

0 commit comments

Comments
 (0)