1. home
  2. #tags
  3. Java

Discover Latest #Java News, Articles and Videos with Contenting

In the world of IT, Java is the most widely used programming language for developing applications for both web and mobile. This language was created in the early 1990s and has been used for a variety of applications since then. Java is known for its robustness and its ability to run on multiple platforms. In this section, you can find news, articles and videos related to Java. Learn about the latest trends, developments and best practices in Java development.

Secure your website wherever you are (Sponsored by SSLs.com)

Show your company is legit, from $36.88ad

Buy a domain and everything else you need (Sponsored By namecheap.com)

adad

module: add --experimental-strip-types by marco-ippolito · Pull Request #53725 · nodejs/node · GitHub

It is possible to execute TypeScript files by setting the experimental flag --experimental-strip-types. Node.js will transpile TypeScript source code into JavaScript source code. During the transpilation process, no type checking is performed, and types are discarded. Roadmap Refs: nodejs/loaders#217 Motivation I believe enabling users to execute TypeScript files is crucial to move the ecosystem forward, it has been requested on all the surveys, and it simply cannot be ignored. We must acknowledge users want to run node foo.ts without installing external dependencies or loaders. There is a TC39 proposal for type annotations Why type stripping Type stripping as the name suggest, means removing all the types, transform the input in a JavaScript module. const foo: string = "foo"; Becomes: const foo = "foo"; Other runtimes also perform transformation of some TypeScript only features into JavaScript, for example enums, which do not exists in JavaScript. At least initially in this PR no trasformation is performed, meaning that using Enum, namespaces etc... will not be possible. Why I chose @swc/wasm-typescript Because of simplicity. I have considered other tools but they require either rust or go to be added to the toolchain. @swc/wasm-typescript its a small package with a wasm and a js file to bind it. Swc is currently used by Deno for the same purpose, it's battle tested. In the future I see this being implemented in native layer. Massive shoutout to @kdy1 for releasing a swc version for us. ⚠️ Refer to the PR changes in typescript.md for implementation details and limitations.