babel-preset-react-hot
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,8 +1,7 @@ | ||
const deepmerge = require('deepmerge'); | ||
const Redbox = require('redbox-react').default; | ||
const defaultStyle = require('redbox-react/lib/style'); | ||
const style = { | ||
...defaultStyle, | ||
const style = deepmerge({}, defaultStyle, { | ||
redbox: { | ||
...defaultStyle.redbox, | ||
background: 'white', | ||
@@ -12,10 +11,8 @@ color: 'hsl(240, 5%, 15%)', | ||
file: { | ||
...defaultStyle.file, | ||
color: 'hsla(240, 5%, 15%, 0.5)' | ||
}, | ||
linkToFile: { | ||
...defaultStyle.linkToFile, | ||
color: 'hsla(240, 5%, 15%, 0.5)' | ||
} | ||
}; | ||
}); | ||
@@ -22,0 +19,0 @@ const ErrorBox = props => React.createElement(Redbox, {style}); |
{ | ||
"name": "babel-preset-react-hot", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Babel preset for React hot module replacement and error catching", | ||
@@ -11,2 +11,3 @@ "main": "index.js", | ||
"babel-plugin-react-transform": "^2.0.2", | ||
"deepmerge": "1.5.0", | ||
"react-transform-catch-errors": "^1.0.2", | ||
@@ -13,0 +14,0 @@ "react-transform-hmr": "^1.0.4", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8651
6
31
+ Addeddeepmerge@1.5.0
+ Addeddeepmerge@1.5.0(transitive)