This is a webpack plugin designed to exploit the V8 engines treatment of functions with parens wrapped around them. This lazy loads the parsing decreasing initial load time. — Edit
npm install v8-lazy-parse-webpack-pluginThis is a webpack plugin designed to exploit the V8 engines treatment of functions with parens wrapped around them. This lazy loads the parsing decreasing initial load time.
To install run the following npm install command:
``shell`
npm install v8-lazy-parse-webpack-plugin --save-dev
webpack.config.js
`javascript
const V8LazyParseWebpackPlugin = require(v8-lazy-parse-webpack-plugin);
module.exports = config;
let config = {
/.../
plugins: [
new V8LazyParseWebpackPlugin();
]
};
``
This plugin is desgined specifically for the V8 engine, so don't expect to have the same effect on all browsers or JS engines.