Skip to content

Commit f9a2c3a

Browse files
minijusalan-agius4
authored andcommitted
fix(@angular-devkit/build-angular): allow both script and module sourceTypes to be localized
1 parent b6df9c1 commit f9a2c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function inlineLocales(options: InlineOptions) {
139139
ast = parseSync(options.code, {
140140
babelrc: false,
141141
configFile: false,
142-
sourceType: 'script',
142+
sourceType: 'unambiguous',
143143
filename: options.filename,
144144
});
145145
} catch (error) {

0 commit comments

Comments
 (0)