@vadistic/babel-preset
TypeScript icon, indicating that this package has built-in type declarations

0.6.4 • Public • Published

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

Package Sidebar

Install

npm i @vadistic/babel-preset

Weekly Downloads

0

Version

0.6.4

License

MIT

Unpacked Size

15.4 kB

Total Files

21

Last publish

Collaborators

  • vadistic