📝 Update getting started docs: jsonpFunction -> chunkLoadingGlobal Webpack v5 (#2226)

This commit is contained in:
Tanveer Gill 2022-09-26 07:19:36 -07:00 committed by GitHub
parent 426b0dd674
commit edd19b11b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,20 @@ In addition to exposing the corresponding life-cycle hooks in the code, in order
#### webpack:
If using Webpack v5:
```js
const packageName = require('./package.json').name;
module.exports = {
output: {
library: `${packageName}-[name]`,
libraryTarget: 'umd',
chunkLoadingGlobal: `webpackJsonp_${packageName}`,
},
};
```
If using Webpack v4:
```js
const packageName = require('./package.json').name;