0.6.4 • Published 3 years ago

@vadistic/babel-preset v0.6.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

@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]],
}