@vadistic/babel-preset
v0.6.4
Published
Personal @vadistic configs
Downloads
4
Maintainers
Readme
@vadisitc/babel-config
Personal babel typescript config
- sane defaults (with decorators, metadata and class properties)
- supports js/browser/node/react/typescript/jest/esm
- typescript typings fop
babel.config.js
- all-in-one - no peerDeeps babel plugins/presets for syntax features
Installation
yarn add -D @vadistic/babel-preset
Example
// babel.config.js
/**
* @typedef { import("@vadistic/babel-preset").BabelPresetOptions } Options
*/
/**
*
* @type Options
*/
const options = {
node: true,
dev: true,
esm: false,
env: {/* typed @babel/preset-env options */},
typescript: {/* typed @babel/preset-typescript options */}
react: {/* typed @babel/preset-react options */}
}
module.exports = {
presets: [['@vadistic/babel-preset', options]],
}