We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
async
1 parent 9714aa9 commit 63a2dbbCopy full SHA for 63a2dbb
packages/angular_devkit/build_angular/src/babel/webpack-loader.ts
@@ -98,7 +98,7 @@ export default custom<AngularCustomOptions>(() => {
98
// TypeScript files will have already been downlevelled
99
customOptions.forceES5 = !/\.tsx?$/.test(this.resourcePath);
100
} else if (esTarget >= ScriptTarget.ES2017) {
101
- customOptions.forceAsyncTransformation = source.includes('async');
+ customOptions.forceAsyncTransformation = !/[\\\/]fesm2015[\\\/]/.test(this.resourcePath) && source.includes('async');
102
}
103
shouldProcess ||= customOptions.forceAsyncTransformation || customOptions.forceES5;
104
0 commit comments