Skip to content

Commit 9bbc7c7

Browse files
petebacondarwinKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@angular-devkit/build-angular): pass filename to parseSync
The latest version of Babel (e.g. 7.8.3) requires a filename to be passed to `parseSync()`. Fixes #16781
1 parent 7628c31 commit 9bbc7c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ function findLocalizePositions(
614614
ast = parseSync(options.code, {
615615
babelrc: false,
616616
sourceType: 'script',
617+
filename: options.filename,
617618
});
618619
} catch (error) {
619620
if (error.message) {

0 commit comments

Comments
 (0)