Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build script #27

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Fix build script #27

merged 1 commit into from
Jul 12, 2022

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 12, 2022

The build script has been failing since @metamask/post-message-stream was updated. This appears to be caused by the addition of modules to that library that were meant to be used in the context of a Web Worker. They referenced an import that only exists in a Web Worker context (worker_threads). They were included in the main entrypoint for the package, so browserify tried to walk the dependency graph and blew up on that line.

The import has been updated to reference just the WindowPostMessageStream module that is used, rather than the main package entrypoint.

The build script has been failing since `@metamask/post-message-stream`
was updated. This appears to be caused by the addition of modules to
that library that were meant to be used in the context of a Web Worker.
They referenced an import that only exists in a Web Worker context
(`worker_threads`). They were included in the main entrypoint for the
package, so browserify tried to walk the dependency graph and blew up
on that line.

The import has been updated to reference just the
`WindowPostMessageStream` module that is used, rather than the main
package entrypoint.
@Gudahtt Gudahtt requested a review from a team as a code owner July 12, 2022 19:42
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gudahtt Gudahtt merged commit e9eddaf into main Jul 12, 2022
@Gudahtt Gudahtt deleted the fix-build-script branch July 12, 2022 19:49
@adonesky1 adonesky1 mentioned this pull request Jul 12, 2022
Gudahtt added a commit that referenced this pull request Aug 2, 2022
This reverts commit e9eddaf. This
change was made to resolve a breakage introduced in
`@metamask.post-message-stream`. This breakage was fixed in v6 of that
library, so we don't need to use a direct import anymore.

For further details, see: MetaMask/post-message-stream#49
Gudahtt added a commit that referenced this pull request Aug 3, 2022
This reverts commit e9eddaf. This
change was made to resolve a breakage introduced in
`@metamask.post-message-stream`. This breakage was fixed in v6 of that
library, so we don't need to use a direct import anymore.

For further details, see: MetaMask/post-message-stream#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants