Frontmatter
| id | 3341 |
| title | buildThreads => main => broken for the non workspace based scope |
| state | Closed |
| labels | bug |
| assignees | tobiu |
| createdAt | Aug 2, 2022, 9:10 PM |
| updatedAt | Aug 2, 2022, 9:13 PM |
| githubUrl | https://github.com/neomjs/neo/issues/3341 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Aug 2, 2022, 9:12 PM |
buildThreads => main => broken for the non workspace based scope
tobiu assigned to @tobiu on Aug 2, 2022, 9:10 PM

tobiu
Aug 2, 2022, 9:12 PM
@sokra: In case there is a cleaner way, feel free to add a comment. It might make sense to check for folders first within the webpack implementation and break in case the folder is not found.
tobiu closed this issue on Aug 2, 2022, 9:12 PM
The introduction of
workspacebased main thread addons seems to have one really bad side-effect which i missed.While the dynamic imports are fine, webpack is not aware of being inside the framework scope or not, so it will try to parse a directory which simply does not exist.
Played around different strategies for a while and the only one I got working was (ab)using
webpack.ContextReplacementPlugin.