Frontmatter
| id | 140 |
| title | Docs app: dist dev&prod examples (webpack chunks) |
| state | Closed |
| labels | documentationenhancementhelp wantedstale |
| assignees | [] |
| createdAt | Dec 2, 2019, 11:54 AM |
| updatedAt | Sep 29, 2024, 4:38 AM |
| githubUrl | https://github.com/neomjs/neo/issues/140 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 29, 2024, 4:38 AM |
This is a rather tricky webpack build chunking issue. Since I am no expert on webpack, help on this one would be appreciated.
In short: The non dist version dynamically imports (lazy loads) each example app as soon as you want to view it. To make this work for the dist versions, webpack needs to be aware of the chunking. Meaning: it must be guaranteed, that each example app only requires the modules which are not already there and by default webpack tends to create multiple modules for the same base classes (e.g. more than 1 IdGenerator class is a big problem).