Use typescript with Babel 7 Standalone
I would like to use babel-standalone (https://babeljs.io/docs/en/next/babel-standalone.html) with typescript.
I tried:
const output = Babel.transform(input, { presets: ['typescript'] }).code;
And:
Privacy & Cookie Consent
We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.
By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.