Revert "Remove __non_webpack_require__ workaround and split Node dependencies correctly (#48154)" #55229
+33
−98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit 93520b6.
It caused more issues than it solved see #52082
We'll need to reopen #47674 and probably completely redo how we bundle the signalr package so it works better.
Revert "Remove non_webpack_require workaround and split Node dependencies correctly
Description
We made a change to fix some esbuild issues with the signalr npm package. Unfortunately, these changes had unintended side-effects to Angular apps.
Customer Impact
People using Angular 17 have build errors when using the
@microsoft/signalr
package.Workarounds are given in #52082 (comment)
Regression?
Change in 8.0 to how we referenced external dependencies for node apps. Broke people using Angular 17 (which released after the change).
Risk
Completely reverting a change to how it was for multiple releases so there isn't any real risk. However, it is technically a breaking change when using esbuild. It's sad, but far more people are being affected by the current issue than were fixed by the change. A full fix would likely also be a breaking change as it likely requires reworking how we bundle the package which changes what files are available in the bundled package.
Verification
Packaging changes reviewed?