@langri-sha/babel-preset
v0.5.4
Published
This is Babel preset that suitable for targetting modern browsers and runtimes, with support for [TypeScript], [Emotion] and [React].
Downloads
6
Readme
@langri-sha/babel-preset
This is Babel preset that suitable for targetting modern browsers and runtimes, with support for TypeScript, Emotion and React.
Usage
Install the preset and it's realted dependencies:
npm install -D @babel/core @langri-sha/babel-preset
Add a root Babel configuration:
// babel.config.js
module.exports = {
presets: ['@langri-sha/babel-preset'],
}
For usage with Webpack and babel-loader
:
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.(c|m)?(t|j)sx?$/,
loader: 'babel-loader',
},
],
},
}