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

Add react-is package #12199

Merged
merged 19 commits into from
Feb 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix export for tests
  • Loading branch information
bvaughn committed Feb 11, 2018
commit c91ef08aee277dc5309f1cc389deca621b61cbfb
8 changes: 7 additions & 1 deletion packages/react-is/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@

'use strict';

module.exports = require('./src/ReactIs');
const ReactIs = require('./src/ReactIs');

// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest.
module.exports = ReactIs.default
? ReactIs.default
: ReactIs;