Skip to content

give canUseDOM with a possibility to be a constant#11

Open
gfx wants to merge 1 commit into
JedWatson:masterfrom
gfx:can_use_dom_to_be_constant
Open

give canUseDOM with a possibility to be a constant#11
gfx wants to merge 1 commit into
JedWatson:masterfrom
gfx:can_use_dom_to_be_constant

Conversation

@gfx

@gfx gfx commented Nov 12, 2018

Copy link
Copy Markdown

https://webpack.js.org/plugins/define-plugin/

Webpack's DefinePlugin has the ability to replace typeof expr to a constant in compile-time, which should lead to better dead-code-elimination.

(I've sent the same change to react react/react#14194 )

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