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

Don't build shallow renderer for FB #18153

Merged
merged 1 commit into from
Feb 27, 2020
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Feb 27, 2020

We're now getting it from npm (react-shallow-renderer) so we don't need this bundle.
Related diff: D20142456.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 27, 2020
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 307d296:

Sandbox Source
frosty-tdd-pmztf Configuration

@gaearon gaearon merged commit 869dbda into facebook:master Feb 27, 2020
@sizebot
Copy link

sizebot commented Feb 27, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 307d296

@sizebot
Copy link

sizebot commented Feb 27, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 307d296

@@ -295,7 +295,7 @@ const bundles = [
}),
},
{
bundleTypes: [FB_WWW_DEV, NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
Copy link
Collaborator

Choose a reason for hiding this comment

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

We really don't need any of these right? This is just building a forwarding file. We can just hard code that in the /npm/ folder instead. https://github.com/facebook/react/blob/master/packages/react-test-renderer/npm/shallow.js

Like we do for other forwarding modules that are just blank. https://github.com/facebook/react/blob/master/packages/react-dom/npm/server.js

Copy link
Contributor

@NMinhNguyen NMinhNguyen Feb 27, 2020

Choose a reason for hiding this comment

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

I might be missing something, but I think you'd still need UMD. But otherwise, for Node you should be able to hardcode in /npm/.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ugh. UMD. yea.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants