Skip to content

Commit fdf0194

Browse files
committed
revert to css-to-object
1 parent 92ce9cc commit fdf0194

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"main": "src/htmltojsx.js",
66
"bin": "src/cli.js",
77
"dependencies": {
8+
"css-to-object": "^1.1.0",
89
"jsdom-no-contextify": "~3.1.0",
910
"react": "~15.4.1",
1011
"react-dom": "~15.4.1",
11-
"to-style": "^1.3.3",
1212
"yargs": "~4.6.0"
1313
},
1414
"devDependencies": {

src/htmltojsx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var ELEMENT_TAG_NAME_MAPPING = {
135135

136136
var HTMLDOMPropertyConfig = require('react-dom/lib/HTMLDOMPropertyConfig');
137137
var SVGDOMPropertyConfig = require('react-dom/lib/SVGDOMPropertyConfig');
138-
var cssToObject = require('to-style').object;
138+
var cssToObject = require('css-to-object');
139139

140140
/**
141141
* Iterates over elements of object invokes iteratee for each element
@@ -640,7 +640,7 @@ HTMLtoJSX.prototype = {
640640
* @return {string}
641641
*/
642642
_getStyleAttribute: function(styles) {
643-
var jsxStyles = cssToObject(styles, { camelize: true });
643+
var jsxStyles = cssToObject(styles);
644644
return `style={${JSON.stringify(jsxStyles)}}`;
645645
},
646646

0 commit comments

Comments
 (0)