babel typescript 1

babel typescript

npm install --save-dev @babel/preset-typescript

Here is what the above code is Doing:
1. We’re using the preset-typescript preset to transpile our TypeScript code to JavaScript.
2. We’re using the preset-react preset to transpile JSX to JavaScript.
3. We’re using the preset-env preset to transpile our JavaScript code to ES5.
4. We’re using the plugin-proposal-class-properties plugin to transpile class properties.

Similar Posts