Greg Bergé 94b2e87e56 feat: add new loadable.lib, change API
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
2018-10-30 17:12:57 +01:00

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