Skip to content

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.

5 participants