1.0.4 • Published 2 years ago

@waldronmatt/babel-config v1.0.4

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

DEPRECATED - Babel Config

My personal shareable babel configuration.

Why? - Alternatives to babel such as esbuild offer better performance for my projects.

Install

yarn add -D @babel/cli @babel/core @waldronmatt/babel-config

Allow babel-preset-env to target polyfills and code transforms via a .browserslistrc file:

yarn add -D @waldronmatt/browserslist-config

And create:

.browserslistrc

extends @waldronmatt/browserslist-config

Usage

babel.config.js

module.exports = {
  extends: ['@waldronmatt/babel-config'],
};

Extending

babel.config.js

module.exports = {
  extends: ['@waldronmatt/babel-config'],
  presets: ['@babel/preset-typescript'],
};

Under The Hood

index.js

  • @babel/plugin-transform-runtime
  • @babel/preset-env
  • @babel/runtime
  • browserslist
  • core-js

License

MIT