Webpack loader to transform lazy-cache files into unlazy cached files.
Install with npm:
$ npm i unlazy-loader --saveThis loader is intended to be used with webpack to transform files using lazy-cache into files that require modules directly. Use this like any other webpack loader;
var webpackConfig = {
module: {
loaders: [
{
test: /\.js$/,
loader: 'unlazy-loader'
}
]
}
}Webpack loader used for transforming files that contain lazy-cache into files
that require modules directly.
Params
source{String}: Source code to inspect.returns{String}: Transformed source code.
- lazy-cache: Cache requires to be lazy-loaded when needed. | homepage
- webpack: Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which… more | homepage
Install dev dependencies:
$ npm i -d && npm testPull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Brian Woodward
Copyright © 2016 Brian Woodward Released under the MIT license.
This file was generated by verb on January 14, 2016.