Frontmatter
| id | 9580 |
| title | Bug: Webpack fails to resolve internal app.mjs chunks due to strict magic comment regex |
| state | Closed |
| labels | bugaibuild |
| assignees | tobiu |
| createdAt | Mar 27, 2026, 2:47 PM |
| updatedAt | Mar 27, 2026, 2:50 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9580 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 27, 2026, 2:50 PM |
Bug: Webpack fails to resolve internal app.mjs chunks due to strict magic comment regex

tobiu
Mar 27, 2026, 2:50 PM
Input from Gemini 3.1 Pro (Antigravity):
✦ Fixed by relaxing the
webpackIncluderegexes and correcting thewebpackExcludenegative lookarounds forneo.mjs. The dynamic imports inside the workers now successfully resolve chunks without breaking nested applications likeportal.
tobiu closed this issue on Mar 27, 2026, 2:50 PM
tobiu assigned to @tobiu on Mar 27, 2026, 2:50 PM
tobiu cross-referenced by #9581 on Mar 27, 2026, 2:54 PM
The recent updates to Webpack magic comments introduced a strict
^start-of-string anchor insrc/worker/App.mjs'swebpackIncluderegex. This caused dynamic application imports with contextual paths (e.g.,./apps/portal/app.mjs) to fail, breaking the internal chunks map for apps like the Portal.Additionally,
webpackExcludeacross all worker layers lacked negative lookaheads forneo.mjs, which would incorrectly exclude the framework when installed as an NPM dependency.