@fastcms/babel-preset
v4.1.0
Published
Shared @babel preset for projects of @fastcms
Downloads
33
Maintainers
Readme
@fastcms/babel-preset
Shared @babel preset for projects of @fastcms
Installation
Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/yarn manually.
# Install using npm
$ npm info "@fastcms/babel-preset" peerDependencies optionalDependencies
$ npx install-peerdeps --dev @fastcms/babel-preset
# Install using yarn
$ yarn add --dev @fastcms/babel-preset @babel/core @babel/runtime core-js
Usage
After installation, create a javascript config file babel.config.js
to the project root.
module.exports = require('@fastcms/babel-preset');
Or create a babel json config file .babelrc.json
to the project root.
{
"presets": [
"@fastcms",
{
"react": true,
"typescript": true
}
]
}
License
The codebase and documentation in this repository are released under the MIT License