@autoguru/babel-preset
AutoGuru's org-wide Babel preset
Last updated 3 months ago by marais .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @autoguru/babel-preset 
SYNC missed versions from official npm registry.

@autoguru/babel-preset

AutoGuru's org-wide Babel set of presets and plugins.

Usage

yarn add --dev @autoguru/babel-preset \
	@babel/core

Then, in your babel.config.js, or .babelrc file:

module.exports = {
	presets: [
		'@autoguru/babel-preset/web', // for browser based targets
		'@autoguru/babel-preset/react', // additional presets for web based react projects
	],
};

Presets

  • @autoguru/babel-preset is merely an alias of @autoguru/babel-preset/web.

  • @autoguru/babel-preset/node is for node based targets.

    • version (default: current) - the version of node you're targeting
    • modules (default: commonjs) - what module transformations to apply.
    • debug (default: isProduction) - a boolean indicating if you want debug information from @babel/preset-env.
    • corejs (default: 3) - The version of core-js to use.
  • @autoguru/babel-preset/web is used for browser based targets, which adds typical transformations needed to support esnext features on older browsers. This will look for a browserslist config file up the tree.

    • modules (default: false) - if you require module transformations. False is default as we use webpack's bundling system and want naked esmodules.
    • debug (default: isProduction) - a boolean indicating if you want debug information from @babel/preset-env.
    • corejs (default: 3) - The version of core-js to use.
  • @autoguru/babel-preset/react is for React based projects, including transformations for JSX. Also hoists FunctionComponents to the root, where it can. See @babel/plugin-transform-react-constant-elements. You can use this alongside @autoguru/babel-preset/web.

Current Tags

  • 1.0.98                                ...           latest (3 months ago)

58 Versions

  • 1.0.98                                ...           3 months ago
  • 1.0.97                                ...           7 months ago
  • 1.0.96                                ...           10 months ago
  • 1.0.95                                ...           10 months ago
  • 1.0.94                                ...           10 months ago
  • 1.0.93                                ...           10 months ago
  • 1.0.92                                ...           a year ago
  • 1.0.91                                ...           a year ago
  • 1.0.90                                ...           a year ago
  • 1.0.89                                ...           a year ago
  • 1.0.88                                ...           a year ago
  • 1.0.87                                ...           a year ago
  • 1.0.86                                ...           a year ago
  • 1.0.85                                ...           a year ago
  • 1.0.82                                ...           a year ago
  • 1.0.81                                ...           a year ago
  • 1.0.80                                ...           a year ago
  • 1.0.78                                ...           a year ago
  • 1.0.76                                ...           a year ago
  • 1.0.71                                ...           a year ago
  • 1.0.70                                ...           a year ago
  • 1.0.69                                ...           a year ago
  • 1.0.68                                ...           a year ago
  • 1.0.64                                ...           a year ago
  • 1.0.63                                ...           a year ago
  • 1.0.60                                ...           a year ago
  • 1.0.58                                ...           a year ago
  • 1.0.54                                ...           a year ago
  • 1.0.53                                ...           a year ago
  • 1.0.50                                ...           2 years ago
  • 1.0.49                                ...           2 years ago
  • 1.0.44                                ...           2 years ago
  • 1.0.43                                ...           2 years ago
  • 1.0.42                                ...           2 years ago
  • 1.0.40                                ...           2 years ago
  • 1.0.39                                ...           2 years ago
  • 1.0.38                                ...           2 years ago
  • 1.0.29                                ...           2 years ago
  • 1.0.28                                ...           2 years ago
  • 1.0.27                                ...           2 years ago
  • 1.0.25                                ...           2 years ago
  • 1.0.21                                ...           2 years ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |