It's the greatest gist the world has seen
Well, it's really just from my article: Webpack Magic in SPFx: Optimize Bundles with Code Splitting
It's the greatest gist the world has seen
Well, it's really just from my article: Webpack Magic in SPFx: Optimize Bundles with Code Splitting
| private _createList(): void { | |
| //eslint-disable-next-line @typescript-eslint/no-floating-promises | |
| ( async () => { | |
| const module = await import ( | |
| /* webpackChunkName: 'list-manager-service' */ | |
| '../../services/ListManagerService' | |
| ); | |
| const listManager = new module.ListManagerService( | |
| this.context.pageContext.web.absoluteUrl, | |
| this.context.spHttpClient); | |
| await listManager.createList(); | |
| })(); | |
| } |