You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolvePath=(name: string)=>['main','function','guide','me','search'].includes(name)
? `/page/${name}`
: ['weather','map','situs','PEcal','player','video'].includes(name)
? `/function/${name}`
: `/module/${name}`// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
TypeScript is only adding polyfills for syntax features (e.g. class), but not more. The lib section of the compiler options is only for having the types available.
In my project, I only use tsc to male all my ts compile to js and place them in the folder where their ts file locates.
How should I run babel to do that?
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.6.2
Search Terms:
Array.prototype includes
Code
My compilerOptions:
Expected behavior:
array.includes being pollyfilled since target es5 does not have inlucdes function
Actual behavior:
Playground Link:
Related Issues:
I found #26255
But it is not my case.
The text was updated successfully, but these errors were encountered: