Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly resolve `core-js/propos…
Browse files Browse the repository at this point in the history
…als/reflect-metadata`

Closes #22443
  • Loading branch information
alan-agius4 authored and dgp1130 committed Jan 11, 2022
1 parent 4d09782 commit a5e375c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
}

if (!buildOptions.aot) {
const jitPolyfills = 'core-js/proposals/reflect-metadata';
const jitPolyfills = require.resolve('core-js/proposals/reflect-metadata');
if (entryPoints['polyfills']) {
entryPoints['polyfills'].push(jitPolyfills);
} else {
Expand Down

0 comments on commit a5e375c

Please sign in to comment.