Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ensure i18n extraction sourcemaps…
Browse files Browse the repository at this point in the history
… are fully configured

Some Webpack loaders use loader context flags to control sourcemap generation. This fix ensures that Webpack will set the appropriate flags for loaders to leverage.
  • Loading branch information
clydin committed Feb 8, 2021
1 parent e3b99ac commit fe90b76
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ExecutionTransformer } from '../transforms';
import { createI18nOptions } from '../utils/i18n-options';
import { assertCompatibleAngularVersion } from '../utils/version';
import { generateBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config';
import { getAotConfig, getCommonConfig, getStatsConfig } from '../webpack/configs';
import { getAotConfig, getBrowserConfig, getCommonConfig, getStatsConfig } from '../webpack/configs';
import { createWebpackLoggingCallback } from '../webpack/utils/stats';
import { Format, Schema } from './schema';

Expand Down Expand Up @@ -184,6 +184,8 @@ export async function execute(
scripts: [],
styles: [],
deleteOutputPath: false,
extractLicenses: false,
subresourceIntegrity: false,
},
context,
(wco) => {
Expand Down Expand Up @@ -211,6 +213,7 @@ export async function execute(
const partials = [
{ plugins: [new NoEmitPlugin()] },
getCommonConfig(wco),
getBrowserConfig(wco),
// Only use VE extraction if not using Ivy
getAotConfig(wco, !usingIvy),
getStatsConfig(wco),
Expand Down

0 comments on commit fe90b76

Please sign in to comment.