LearnNewsExamplesServices
Frontmatter
id3341
titlebuildThreads => main => broken for the non workspace based scope
stateClosed
labels
bug
assigneestobiu
createdAtAug 2, 2022, 9:10 PM
updatedAtAug 2, 2022, 9:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/3341
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 2, 2022, 9:12 PM

buildThreads => main => broken for the non workspace based scope

Closed v8.1.0 bug
tobiu
tobiu commented on Aug 2, 2022, 9:10 PM

The introduction of workspace based 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.

tobiu added the bug label on Aug 2, 2022, 9:10 PM
tobiu assigned to @tobiu on Aug 2, 2022, 9:10 PM
tobiu referenced in commit 3e7fb65 - "buildThreads => main => broken for the non workspace based scope #3341" on Aug 2, 2022, 9:11 PM
tobiu
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