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
blockedBy[]
blocking[]
closedAtMar 27, 2026, 3:03 PM

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

Closed v12.1.0 bugaibuild
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.

tobiu added the bug label on Mar 27, 2026, 3:03 PM
tobiu added the ai label on Mar 27, 2026, 3:03 PM
tobiu added the build label on Mar 27, 2026, 3:03 PM
tobiu referenced in commit 12038d4 - "fix(build): Revert absolute-path context anchors and exclude node backend modules (#9583)" on Mar 27, 2026, 3:03 PM
tobiu closed this issue on Mar 27, 2026, 3:03 PM
tobiu assigned to @tobiu on Mar 27, 2026, 3:03 PM