1.0.4 • Published 3 years ago
@waldronmatt/babel-config v1.0.4
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-configAllow babel-preset-env to target polyfills and code transforms via a .browserslistrc file:
yarn add -D @waldronmatt/browserslist-configAnd create:
.browserslistrc
extends @waldronmatt/browserslist-configUsage
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/runtimebrowserslistcore-js
License
MIT