Frontmatter
| id | 9583 |
| title | Bug: Webpack matches absolute paths, invalidating the ^\.\/ magic comment anchor |
| state | Closed |
| labels | bugaibuild |
| assignees | tobiu |
| createdAt | Mar 27, 2026, 3:03 PM |
| updatedAt | Mar 27, 2026, 3:03 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9583 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 27, 2026, 3:03 PM |
Webpack 5 evaluates the magic comment path against the local module absolute path, meaning
^\.\/failed globally, breaking the.mjschunk map. We reverted the anchor and addressed the root cause of backend node scripts compiling by intelligently addingai/?into thewebpackExcludelist. Furthermore, we implemented platform-agnostic separators(?:\/|\\)for the new backend exclude directories.