enable code splitting and add chunk names to dynamic import and create separate chunk vendor for all node modules (#2245)

* build: increase Limit chunk to enable code splitting add chunk names to dynamic import

* Remove limitchunkcount and have separate chunk for each node module so we dnt have any unnamed id.js chunks

* fix

* create one chunk for all node modules

* Add caret to peer deps

* extra space
This commit is contained in:
Aakansha Doshi 2020-10-18 23:06:25 +05:30 committed by GitHub
parent 41ccd47791
commit 4a26845395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 67 additions and 16 deletions

View file

@ -56,7 +56,11 @@ export class TopErrorBoundary extends React.Component<
private async createGithubIssue() {
let body = "";
try {
const templateStrFn = (await import("../bug-issue-template")).default;
const templateStrFn = (
await import(
/* webpackChunkName: "bug-issue-template" */ "../bug-issue-template"
)
).default;
body = encodeURIComponent(templateStrFn(this.state.sentryEventId));
} catch (error) {
console.error(error);