@bernardmcmanus/babel-preset-ts
v0.1.5
Published
Common babel configuration for TypeScript projects
Downloads
2
Readme
@bernardmcmanus/babel-preset-ts
Common babel configuration for TypeScript projects
Usage
Install
@bernardmcmanus/babel-preset-ts
:npm i @bernardmcmanus/babel-preset-ts -D
a. Simple - Add
@bernardmcmanus/babel-preset-ts
to your project'sbabel.config.js
:module.exports = { presets: [ [ '@bernardmcmanus/babel-preset-ts', /** * An options object for @babel/preset-typescript * Default values are shown below * @see https://babeljs.io/docs/en/babel-preset-typescript#options */ (typescript: { allowNamespaces: true, }), ], ], };
b. Advanced - See
@bernardmcmanus/babel-preset-js
for advanced configuration options
Example Configurations
See @bernardmcmanus/babel-preset-js
for example configurations
Presets and Plugins
| Name | Description |
| --------------------------------- | -------------------------------------------------------------------------------- |
| @bernardmcmanus/babel-preset-js
| https://github.com/bernardmcmanus/standards/tree/master/packages/babel-preset-js |
| @babel/preset-typescript
| https://babeljs.io/docs/en/babel-preset-typescript |