mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-25 15:24:15 +00:00
BREAKING CHANGE: - `ErrorComponent` is ignored, please use Error Boundaries to handle errors. - `lazy` is no longer exported - `LoadingComponent` is replaced by `fallback` option - `ref` are now forwarded
485 B
485 B
@loadable/webpack-plugin
This plugin is required only if you use Server Side Rendering in your application. See @loadable/server for more information.
Install
npm install --save-dev @loadable/webpack-plugin
Usage
webpack.config.js
const LoadablePlugin = require('@loadable/webpack-plugin')
module.exports = {
plugins: [new LoadablePlugin()],
}
License
MIT