Skip to content

Conversation

@gaearon
Copy link
Collaborator

@gaearon gaearon commented Aug 23, 2017

Based on top of https://github.com/facebook/react/pulls.

This is probably broken in some ways (and definitely breaks Jest) but some test displays Hello World. Builds are a few KBs down.

Probably don't want to land this until we have a way to run tests against bundles. Still was fun try. I intend to keep this (relatively) up to date hoping I can land it within a few weeks once the infra is there.

@acdlite
Copy link
Collaborator

acdlite commented Aug 23, 2017

Cool! How did you convert

if (__DEV__) {
  var warning = require('warning');
}

?

@nhunzaker
Copy link
Contributor

27,000 deletions. Why such a stark drop?

@sophiebits
Copy link
Collaborator

It's stacked (ha) on #10517.

@nhunzaker
Copy link
Contributor

Oh. Haha. @spicyj so clever!

@gaearon
Copy link
Collaborator Author

gaearon commented Aug 24, 2017

@acdlite For now I just turned everything into imports so there might be DEV-only things there. I have a list of them. We can do something like #10176 (comment) as this gets closer to reality. I think the bigger blocker is lack of test infra.

They weren't necessary and made things more confusing.
@gaearon gaearon force-pushed the remove-dom-stack+esm branch from edcf8f2 to 34a5f00 Compare August 24, 2017 01:07
@gaearon
Copy link
Collaborator Author

gaearon commented Nov 21, 2017

Did this in another PR.

@gaearon gaearon closed this Nov 21, 2017
@gaearon gaearon deleted the remove-dom-stack+esm branch November 21, 2017 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants