kibana/packages/kbn-babel-preset
Gidi Meir Morris 3281a6833e
Improves performance of task execution in Task manager (#50047)
This PR include three key changes:

1. Run tasks as soon as they have been marked as running, rather than wait for the whole batch to me marked
2. Use a custom refresh setting of refresh: false where possible, in place of wait_for, in order to speed up Task Manager's internal workflow
3. Instrumentation of Task Manager exposing Activity / Inactivity metrics in Performance test runs
2019-11-06 13:48:19 -05:00
..
common_babel_parser_options.js
common_preset.js [7.x] Do not use env key in Babel common preset (#48661) (#48916) 2019-10-22 12:53:19 -05:00
node_preset.js Improves performance of task execution in Task manager (#50047) 2019-11-06 13:48:19 -05:00
package.json Improves performance of task execution in Task manager (#50047) 2019-11-06 13:48:19 -05:00
README.md
webpack_preset.js

@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.