I am currently working on an Angular 12 project that needs to be compatible with Internet Explorer. Some of the dependencies in my node_modules folder are non es5.
As far as I know, tsc
does not affect node_modules and starts evaluating from the main
option defined in angular.json
.
While researching solutions, I have come across suggestions to use babel, but I am uncertain about the best approach.
Should I incorporate babel with tsc or completely replace
tsc
with babel using a custom-webpack configuration?From what I gather, after transpilation, the code typically goes to an output directory. However, since I need to transpile js files within node_modules, how can I ensure that the transpiled files replace the originals in node_modules? Any ideas on this?