kibana/packages/kbn-babel-preset
renovate[bot] 572274b779 Update babel related packages (#43595)
* upgrade all babel related modules, and bump lodash minors

* update kbn-pm dist

* update fetch-mock, necessary to use core-js 3

* use regenerator transform in jest tests, as required by EUI

* disable useBuiltIns rather than using regenerator plugin

* remove extra regenerator-runtime import
2019-08-22 18:40:57 -07:00
..
common_babel_parser_options.js Create vendor dll for the client modules (#22618) 2018-12-05 15:45:19 +00:00
common_preset.js Fix path references into and out of x-pack/legacy 2019-06-20 13:34:48 -04:00
node_preset.js Update babel related packages (#43595) 2019-08-22 18:40:57 -07:00
package.json Update babel related packages (#43595) 2019-08-22 18:40:57 -07:00
README.md [kbn/babel-preset] add readme (#39854) 2019-06-28 11:06:46 -07:00
webpack_preset.js Add support for dynamic imports (#43716) 2019-08-22 09:48:39 -05:00

@kbn/babel-preset

This package contains the shared bits of babel config that we use for transpiling our source code to code compatible with Node.JS and the various browsers we support.

usage

To use our presets add the following to the devDependencies section of your package.json:

"@kbn/babel-preset": "1.0.0",

Then run yarn kbn bootstrap to properly link the package into your plugin/package.

Finally, add either @kbn/babel-preset/node_preset or @kbn/babel-preset/webpack_preset to your babel config.

@kbn/babel-preset/node_preset is usually placed in a babel.config.js file.

@kbn/babel-preset/webpack_preset is usually placed directly in your webpack configuration.

NOTE: If you're transpiling code that will be run in both the browser and node you must transpile your code twice, once for each target. Take a look at the build tasks for @kbn/i18n to see how that can look.