example nitro project with typescript jsCompiler (project-nitro-typescript)
Description
There is a difference between the projects with different jsCompiler options:
The "js" version runs on IE11, the "typescript" version throws js errors, because some polyfills are missing.
The advantage of the "js" version is the inclusion of babel and preset-env, which automatically adds the polyfills of js-core if necessary (respects browserslist).
We should add the polyfills for IE11, or even better, find a way to automatically include necesscary polyfills respecting browserslist.
Type of issue
The issue refers to the:
Description
There is a difference between the projects with different jsCompiler options: The "js" version runs on IE11, the "typescript" version throws js errors, because some polyfills are missing. The advantage of the "js" version is the inclusion of babel and preset-env, which automatically adds the polyfills of js-core if necessary (respects browserslist).
We should add the polyfills for IE11, or even better, find a way to automatically include necesscary polyfills respecting browserslist.