Skip to content

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

Merged
hugomrdias merged 1 commit into
masterfrom
feat/no-node-globals
Jun 16, 2020
Merged

feat: default to not include node globals and builtins#578
hugomrdias merged 1 commit into
masterfrom
feat/no-node-globals

Conversation

@hugomrdias

@hugomrdias hugomrdias commented Jun 11, 2020

Copy link
Copy Markdown
Member

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

@vasco-santos vasco-santos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jacobheun

Copy link
Copy Markdown
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