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(rollup): fix incorrect rollup configs #945

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

kaiyoma
Copy link
Collaborator

@kaiyoma kaiyoma commented Mar 29, 2023

The Rollup config for cloudvision-connector references the replace plugin, but this is the wrong package to do that, since that package never uses process.env in its source code. This config belongs in a-msgpack, which does access process.env in its source.

This fix will remove process.env from appearing in the build output of a-msgpack, where it appears currently and causes non-webpack callers to crash because process is not defined in a browser.

The Rollup config for cloudvision-connector references the `replace`
plugin, but this is the wrong package to do that, since that package
never uses `process.env` in its source code. This config belongs in
a-msgpack, which does access `process.env` in its source.

This fix will remove `process.env` from appearing in the build output
of a-msgpack, where it appears currently and causes non-webpack callers
to crash because `process` is not defined in a browser.
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.

1 participant