Can Typescript or ES6 JavaScript be used when creating a UWP JavaScript project?
Its quite a broad question but theres not much info online so asking here.
Can Typescript or ES6 JavaScript be used when creating a UWP JavaScript project?
Its quite a broad question but theres not much info online so asking here.
I do not see why this would not be possible. Windows Dev Center - What's a Universal Windows Platform (UWP) app? clearly states that JavaScript and HTML can be used. TypeScript is transpiled into JavaScript. If you are concerned with using ES6 features that may not be supported, you can use Babel.
If you mean native support without a build step, then no, you have no ES 6/Typescript support. Nor will it be coming: microsoft has their WinJS runtime for native apps in maintenance mode with no new features planned. They're pushing C# and Xamarin (which they acquired 2 years ago). Here is a WinJS playground where you can see that features like let cause a syntax error.
You can however compile modern JavaScript or TypeScript to ES 3 JavaScript using babel or the TypeScript compiler. TypeScript in particular must be compiled: nothing I know of runs it natively (not even Microsoft's own Edge browser.