File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ /**
4
+ * Module dependencies.
5
+ */
6
+ var HTMLDOMPropertyConfig ;
7
+ var SVGDOMPropertyConfig ;
8
+
9
+ // HTML and SVG DOM Property Config
10
+ // moved to `react-dom` in v15.4.x
11
+ try {
12
+ HTMLDOMPropertyConfig = require ( 'react-dom/lib/HTMLDOMPropertyConfig' ) ;
13
+ SVGDOMPropertyConfig = require ( 'react-dom/lib/SVGDOMPropertyConfig' ) ;
14
+ } catch ( error ) {
15
+ HTMLDOMPropertyConfig = require ( 'react/lib/HTMLDOMPropertyConfig' ) ;
16
+ SVGDOMPropertyConfig = require ( 'react/lib/SVGDOMPropertyConfig' ) ;
17
+ }
18
+
19
+ /**
20
+ * Export config.
21
+ */
22
+ module . exports = {
23
+ HTMLDOMPropertyConfig : HTMLDOMPropertyConfig ,
24
+ SVGDOMPropertyConfig : SVGDOMPropertyConfig
25
+ } ;
Original file line number Diff line number Diff line change 3
3
/**
4
4
* Module dependencies.
5
5
*/
6
- var HTMLDOMPropertyConfig = require ( 'react/lib/HTMLDOMPropertyConfig' ) ;
6
+ var HTMLDOMPropertyConfig = require ( './DOMPropertyConfig' ) . HTMLDOMPropertyConfig ;
7
7
var utilities = require ( './utilities' ) ;
8
8
var propertyConfig = require ( './property-config' ) ;
9
9
Original file line number Diff line number Diff line change 4
4
* Module dependencies.
5
5
*/
6
6
var utilities = require ( './utilities' ) ;
7
- var HTMLDOMPropertyConfig = require ( 'react/lib/HTMLDOMPropertyConfig' ) ;
8
- var SVGDOMPropertyConfig = require ( 'react/lib/SVGDOMPropertyConfig' ) ;
7
+ var DOMPropertyConfig = require ( './DOMPropertyConfig' ) ;
8
+ var HTMLDOMPropertyConfig = DOMPropertyConfig . HTMLDOMPropertyConfig ;
9
+ var SVGDOMPropertyConfig = DOMPropertyConfig . SVGDOMPropertyConfig ;
9
10
10
11
var config = {
11
12
html : { } ,
You can’t perform that action at this time.
0 commit comments