css-hot-loader
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -0,1 +1,5 @@ | ||
### 1.3.8 2018-03-01 | ||
- feat: using debounce for update in DOM by @53c701d [!35](https://github.com/shepherdwind/css-hot-loader/pull/35) | ||
### 1.3.7 / 2018-02-10 | ||
@@ -2,0 +6,0 @@ |
var normalizeUrl = require('normalize-url'); | ||
var srcByModuleId = Object.create(null); | ||
var debounce = require('lodash/debounce'); | ||
@@ -7,3 +8,3 @@ var noDocument = typeof document === 'undefined'; | ||
var noop = function () {} | ||
var noop = function () {}; | ||
@@ -38,3 +39,3 @@ var getCurrentScriptUrl = function(moduleId) { | ||
}; | ||
} | ||
}; | ||
@@ -113,3 +114,4 @@ function updateCss(el, url) { | ||
getScriptSrc = getCurrentScriptUrl(moduleId); | ||
return function() { | ||
function update() { | ||
var src = getScriptSrc(options.fileMap); | ||
@@ -124,2 +126,4 @@ var reloaded = reloadStyle(src); | ||
} | ||
return debounce(update, 10); | ||
}; |
{ | ||
"name": "css-hot-loader", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "css hot reload work with extract-text-webpack-plugin", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"loader-utils": "^1.1.0", | ||
"lodash": "^4.17.5", | ||
"normalize-url": "^1.9.1" | ||
@@ -28,0 +29,0 @@ }, |
11145
125
3
+ Addedlodash@^4.17.5
+ Addedlodash@4.17.21(transitive)