Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ensure babel configurations are i…
Browse files Browse the repository at this point in the history
…solated

The `configFile` option needs to be set to false to ensure Babel does not attempt to discover and load any file based configurations.
  • Loading branch information
clydin authored and kyliau committed Jan 28, 2020
1 parent a9f1129 commit 203f48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ async function setupLocalize(
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
configFile: false,
compact: false,
cacheCompression: false,
cacheDirectory: findCachePath('babel-loader'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export async function process(options: ProcessBundleOptions): Promise<ProcessBun
// tslint:disable-next-line: no-any
inputSourceMap: false as any,
babelrc: false,
configFile: false,
presets: [[
require.resolve('@babel/preset-env'),
{
Expand Down Expand Up @@ -613,6 +614,7 @@ function findLocalizePositions(
try {
ast = parseSync(options.code, {
babelrc: false,
configFile: false,
sourceType: 'script',
filename: options.filename,
});
Expand Down

0 comments on commit 203f48a

Please sign in to comment.