-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PropTypes bug related to mixed imports and requires
- Loading branch information
cookieranger
committed
Apr 14, 2017
1 parent
65d847f
commit c2172ad
Showing
4 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...sforms/__testfixtures__/React-PropTypes-to-prop-types/mixed-import-and-require-2.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
import type { Foo } from 'Foo'; | ||
|
||
const React = require('React'); | ||
|
||
const {PropTypes} = React; | ||
|
||
class Component extends React.PureComponent { | ||
render() { | ||
return <div />; | ||
} | ||
} | ||
|
||
module.exports = Component; |
15 changes: 15 additions & 0 deletions
15
...forms/__testfixtures__/React-PropTypes-to-prop-types/mixed-import-and-require-2.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
import type { Foo } from 'Foo'; | ||
|
||
const PropTypes = require('prop-types'); | ||
|
||
const React = require('React'); | ||
|
||
class Component extends React.PureComponent { | ||
render() { | ||
return <div />; | ||
} | ||
} | ||
|
||
module.exports = Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters