@imbsky/lebab-loader v0.4.1
lebab-loader
Overview
Lebab transpiles your ES5 code to ES6/ES7. It does exactly the opposite of what Babel does. - Lebab
This loader seamlessly integrates between webpack and Lebab. By default, this loader enables all safe transform options. But you can set it yourself. See the usage section for details.
Installation
See the file INSTALL.md for installation instructions.
Usage
Basic example
Use only the safe transform options.
const config = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [{ loader: "@imbsky/lebab-loader" }]
}
]
}
};
Advanced example
Use what you want to use and override the default settings. Note that all default options are discarded.
const config = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [
{
loader: "@imbsky/lebab-loader",
options: {
transforms: [
"arrow",
"arrow-return",
"for-of",
"for-each",
"arg-rest",
"arg-spread",
"obj-method",
"obj-shorthand",
"no-strict",
"exponent",
"multi-var",
"let",
"class",
"commonjs",
"template",
"default-param",
"destruct-param",
"includes"
]
}
}
]
}
]
}
};
Bug reports and user feedback
Please report bugs using the issue tracker at https://github.com/imbsky/rollup-plugin-lebab/issues
License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.