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

feat: default to not include node globals and builtins #578

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

hugomrdias
Copy link
Member

@hugomrdias hugomrdias commented Jun 11, 2020

This PR changes webpack config to not include node globals and built-ins by default.

Tracking issue here ipfs/js-ipfs#2924

For now theres still a --node flag to allow node globals if needed.

process is still included because readable-stream will only remove it in v4 nodejs/readable-stream#435

BREAKING CHANGE: browser code will NOT have node globals and builtins available.

This PR changes webpack config to not include node globals and built-ins by default.

For now theres still a --node flag to allow node globals if needed.

`process` is still includes because `readable-stream` will only remove it in v4 nodejs/readable-stream#435

BREAKING CHANGE: browser code will NOT have node globals and builtins available.
@hugomrdias hugomrdias requested a review from a team June 11, 2020 12:09
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

@jacobheun
Copy link
Contributor

Change looks good, CI is failing though

@hugomrdias hugomrdias changed the title feat: default to not include node stuff feat: default to not include node globals anf builtins Jun 16, 2020
@hugomrdias hugomrdias merged commit fecb4ae into master Jun 16, 2020
@hugomrdias hugomrdias deleted the feat/no-node-globals branch June 16, 2020 14:53
@hugomrdias hugomrdias changed the title feat: default to not include node globals anf builtins feat: default to not include node globals and builtins Jun 20, 2020
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.

4 participants