babel-preset-es2015-ie9below
v0.0.1
Published
Babel preset for all es2015 plugins. but only supports ie9 below ie browser(ie7, 8)
Readme
babel-preset-es2015-ie9below
Babel preset for all es2015 plugins, but loosely supports IE9 below IE browser(ie7, 8) refer.
| supported | plugin | | ---------:| ------ | | ✔ | babel-plugin-transform-es2015-template-literals | | ✔ | babel-plugin-transform-es2015-literals | | ✔ | babel-plugin-transform-es2015-function-name | | ✔ | babel-plugin-transform-es2015-arrow-functions | | ✔ | babel-plugin-transform-es2015-block-scoped-functions | | ✖ | babel-plugin-transform-es2015-classes | | ✔ | babel-plugin-transform-es2015-object-super | | ✔ | babel-plugin-transform-es2015-shorthand-properties | | ✔ | babel-plugin-transform-es2015-computed-properties | | ✖ | babel-plugin-transform-es2015-for-of | | ✔ | babel-plugin-transform-es2015-sticky-regex | | ✔ | babel-plugin-transform-es2015-unicode-regex | | ✔ | babel-plugin-check-es2015-constants | | ✖ | babel-plugin-transform-es2015-spread | | ✔ | babel-plugin-transform-es2015-parameters | | ✔ | babel-plugin-transform-es2015-destructuring | | ✔ | babel-plugin-transform-es2015-block-scoping | | ✖ | babel-plugin-transform-es2015-typeof-symbol | | ✖ | babel-plugin-transform-es2015-modules-commonjs | | ✖ | babel-plugin-transform-regenerator |
Install
$ npm install --save-dev babel-preset-es2015-ie9belowUsage
Via .babelrc (Recommended)
.babelrc
{
"presets": ["es2015-ie9below"]
}Via CLI
$ babel script.js --presets es2015-ie9belowVia Node API
require("babel-core").transform("code", {
presets: ["es2015-ie9below"]
});