Skip to content

Commit 4f7e4f9

Browse files
committed
change ignore files config
1 parent ead7260 commit 4f7e4f9

27 files changed

Lines changed: 78 additions & 76 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
node_modules
44
coverage
55
_book
6-
/lib
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @providesModule LinkedStateMixin
1010
* @typechecks static-only
1111
*/
12-
import ReactLink from './ReactLink'
13-
import ReactStateSetters from './ReactStateSetters'
12+
var ReactLink = require('./ReactLink')
13+
var ReactStateSetters = require('./ReactStateSetters')
1414

1515
/**
1616
* A simple mixin around ReactLink.forState().
@@ -33,4 +33,4 @@ var LinkedStateMixin = {
3333
},
3434
};
3535

36-
export default LinkedStateMixin;
36+
module.exports = LinkedStateMixin;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
* @providesModule ReactCSSTransitionGroup
1111
*/
1212

13-
import React from '../src/index'
14-
import ReactTransitionGroup from './ReactTransitionGroup'
15-
import ReactCSSTransitionGroupChild from './ReactCSSTransitionGroupChild'
16-
import { extend as assign } from '../src/util'
13+
var React = require('../dist/react-lite.common')
14+
var ReactTransitionGroup = require('./ReactTransitionGroup')
15+
var ReactCSSTransitionGroupChild = require('./ReactCSSTransitionGroupChild')
16+
var assign = Object.assign
1717

1818
function createTransitionTimeoutPropValidator(transitionType) {
1919
var timeoutPropName = 'transition' + transitionType + 'Timeout';
@@ -89,4 +89,4 @@ var ReactCSSTransitionGroup = React.createClass({
8989
},
9090
});
9191

92-
export default ReactCSSTransitionGroup;
92+
module.exports = ReactCSSTransitionGroup;
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
* @typechecks
1010
* @providesModule ReactCSSTransitionGroupChild
1111
*/
12-
import React from '../src/index'
13-
import * as Children from '../src/Children'
14-
import * as ReactDOM from '../src/ReactDOM'
12+
var React = require('../dist/react-lite.common')
13+
var ReactDOM = React
14+
var Children = ReactDOM.Children
15+
var CSSCore = require('./utils/CSSCore')
16+
var ReactTransitionEvents = require('./ReactTransitionEvents')
1517

16-
import CSSCore from './utils/CSSCore'
17-
import ReactTransitionEvents from './ReactTransitionEvents'
18-
19-
let onlyChild = Children.only
18+
var onlyChild = Children.only
2019

2120
// We don't remove the element from the DOM until we receive an animationend or
2221
// transitionend event. If the user screws up and forgets to add an animation
@@ -166,4 +165,4 @@ var ReactCSSTransitionGroupChild = React.createClass({
166165
},
167166
});
168167

169-
export default ReactCSSTransitionGroupChild;
168+
module.exports = ReactCSSTransitionGroupChild;
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
*
99
* @providesModule ReactChildren
1010
*/
11-
import PooledClass from './utils/PooledClass'
12-
import { isValidElement, cloneElement } from '../src/createElement'
13-
import emptyFunction from './utils/emptyFunction'
14-
import traverseAllChildren from './utils/traverseAllChildren'
11+
var React = require('../dist/react-lite.common')
12+
var PooledClass = require('./utils/PooledClass')
13+
var emptyFunction = require('./utils/emptyFunction')
14+
var traverseAllChildren = require('./utils/traverseAllChildren')
15+
var isValidElement = React.isValidElement
16+
var cloneElement = React.cloneElement
1517

1618
var twoArgumentPooler = PooledClass.twoArgumentPooler;
1719
var fourArgumentPooler = PooledClass.fourArgumentPooler;
@@ -209,4 +211,4 @@ var ReactChildren = {
209211
toArray: toArray,
210212
};
211213

212-
export default ReactChildren;
214+
module.exports = ReactChildren;

addons/ReactComponentWithPureRenderMixin.js renamed to lib/ReactComponentWithPureRenderMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @providesModule ReactComponentWithPureRenderMixin
1010
*/
11-
import shallowCompare from './shallowCompare'
11+
var shallowCompare = require('./shallowCompare')
1212

1313
/**
1414
* If your React component's render function is "pure", e.g. it will render the
@@ -40,4 +40,4 @@ var ReactComponentWithPureRenderMixin = {
4040
},
4141
};
4242

43-
export default ReactComponentWithPureRenderMixin;
43+
module.exports = ReactComponentWithPureRenderMixin;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
*
99
* @providesModule ReactFragment
1010
*/
11-
12-
import { isValidElement } from '../src/createElement'
13-
import ReactChildren from './ReactChildren'
14-
import emptyFunction from './utils/emptyFunction'
15-
let invariant = function() {}
16-
let warning = function() {}
11+
var React = require('../dist/react-lite.common')
12+
var isValidElement = React.isValidElement
13+
var ReactChildren = './ReactChildren'
14+
var emptyFunction = './utils/emptyFunction'
15+
var invariant = function() {}
16+
var warning = function() {}
1717
/**
1818
* We used to allow keyed objects to serve as a collection of ReactElements,
1919
* or nested sets. This allowed us a way to explicitly key a set a fragment of
@@ -78,4 +78,4 @@ var ReactFragment = {
7878
},
7979
};
8080

81-
export default ReactFragment;
81+
module.exports = ReactFragment;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* We have provided some sugary mixins to make the creation and
3333
* consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin.
3434
*/
35-
import React from '../src/index'
35+
var React = require('../dist/react-lite.common')
3636

3737
/**
3838
* @param {*} value current value of the link
@@ -65,4 +65,4 @@ ReactLink.PropTypes = {
6565
link: createLinkTypeChecker,
6666
};
6767

68-
export default ReactLink;
68+
module.exports = ReactLink;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ ReactStateSetters.Mixin = {
101101
},
102102
};
103103

104-
export default ReactStateSetters;
104+
module.exports = ReactStateSetters;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
'use strict';
1414

15-
import flattenChildren from './utils/flattenChildren'
15+
var flattenChildren = require('./utils/flattenChildren')
1616

1717
var ReactTransitionChildMapping = {
1818
/**
@@ -97,4 +97,4 @@ var ReactTransitionChildMapping = {
9797
},
9898
};
9999

100-
export default ReactTransitionChildMapping;
100+
module.exports = ReactTransitionChildMapping;

0 commit comments

Comments
 (0)