LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtDec 2, 2019, 11:54 AM
updatedAtOct 9, 2026, 11:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/140
authortobiu
commentsCount4
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 29, 2024, 4:38 AM

Docs app: dist dev&prod examples (webpack chunks)

Closed v7.9.1/archive-v7-9-1-chunk-1 documentationenhancementhelp wantedstale
tobiu
tobiu commented on Dec 2, 2019, 11:54 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).

tobiu added the documentation label on Dec 2, 2019, 11:54 AM
tobiu added the enhancement label on Dec 2, 2019, 11:54 AM
tobiu added the help wanted label on Dec 2, 2019, 11:54 AM
tobiu referenced in commit c86776e - "Docs app: disable the examples tab for dist versions until #140 is resolved." on Dec 2, 2019, 11:56 AM
tobiu referenced in commit 6c2c1c8 - "#140 comment update" on Dec 2, 2019, 11:57 AM