babel-preset-umeboshi v0.4.1-9
babel-preset-umeboshi
Standard Babel preset for Umeboshi templates
This preset includes:
- babel-preset-env with
loose=trueanduseBuiltIns='entry'options. Target browsers:['> 1%', 'last 2 versions', 'not ie < 11'] - babel-preset-stage-2
transform-runtimeplugin excluding polyfill.transform-es2015-modules-commonjson test environments (BABEL_ENV = 'test'orNODE_ENV = 'test')
Regenerator transform and generator polyfill are always included in order to support async/await and dynamic imports. If you won't use these features and wish to save some KB you can disable them via preset options.
Install
With npm:
npm install --save-dev babel-preset-umeboshiOr yarn:
yarn add babel-preset-umeboshi --devUsage
Add the preset to .babelrc file in your project's root folder.
{
"presets": ["umeboshi"]
}Preset options
By default both async/await and async import() are supported. Anyway in order to support older environments the preset needs to transpile them to generators and include the related runtime. This will result in an increased bundle size.
If you plan not to use such features, or your target browsers already support them, you can disable them with the following setup:
{
"presets": [
["umeboshi", {
async: false,
asyncImport: false
}]
]
}7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago