Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
25 changes: 25 additions & 0 deletions lib/DOMPropertyConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use strict';

/**
* Module dependencies.
*/
var HTMLDOMPropertyConfig;
var SVGDOMPropertyConfig;

// HTML and SVG DOM Property Config
// moved to `react-dom` in v15.4.x
try {
HTMLDOMPropertyConfig = require('react-dom/lib/HTMLDOMPropertyConfig');
SVGDOMPropertyConfig = require('react-dom/lib/SVGDOMPropertyConfig');
} catch (error) {
HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig');
SVGDOMPropertyConfig = require('react/lib/SVGDOMPropertyConfig');
}

/**
* Export config.
*/
module.exports = {
HTMLDOMPropertyConfig: HTMLDOMPropertyConfig,
SVGDOMPropertyConfig: SVGDOMPropertyConfig
};
2 changes: 1 addition & 1 deletion lib/attributes-to-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Module dependencies.
*/
var HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig');
var HTMLDOMPropertyConfig = require('./DOMPropertyConfig').HTMLDOMPropertyConfig;
var utilities = require('./utilities');
var propertyConfig = require('./property-config');

Expand Down
5 changes: 3 additions & 2 deletions lib/property-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* Module dependencies.
*/
var utilities = require('./utilities');
var HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig');
var SVGDOMPropertyConfig = require('react/lib/SVGDOMPropertyConfig');
var DOMPropertyConfig = require('./DOMPropertyConfig');
var HTMLDOMPropertyConfig = DOMPropertyConfig.HTMLDOMPropertyConfig;
var SVGDOMPropertyConfig = DOMPropertyConfig.SVGDOMPropertyConfig;

var config = {
html: {},
Expand Down