LearnNewsExamplesServices
Frontmatter
id9583
titleBug: Webpack matches absolute paths, invalidating the ^\.\/ magic comment anchor
stateClosed
labels
bugaibuild
assigneestobiu
createdAtMar 27, 2026, 3:03 PM
updatedAtMar 27, 2026, 3:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/9583
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtMar 27, 2026, 3:03 PM

Bug: Webpack matches absolute paths, invalidating the ^./ magic comment anchor

tobiu
tobiu commented on Mar 27, 2026, 3:03 PM

Webpack 5 evaluates the magic comment path against the local module absolute path, meaning ^\.\/ failed globally, breaking the .mjs chunk map. We reverted the anchor and addressed the root cause of backend node scripts compiling by intelligently adding ai/? into the webpackExclude list. Furthermore, we implemented platform-agnostic separators (?:\/|\\) for the new backend exclude directories.