style-loader
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.2.1](https://github.com/webpack-contrib/style-loader/compare/v1.2.0...v1.2.1) (2020-04-28) | ||
### Bug Fixes | ||
* hot module replacement logic for lazy type ([#468](https://github.com/webpack-contrib/style-loader/issues/468)) ([88a5c2b](https://github.com/webpack-contrib/style-loader/commit/88a5c2bdb3405aa5cb889726f3908747106a6c01)) | ||
## [1.2.0](https://github.com/webpack-contrib/style-loader/compare/v1.1.4...v1.2.0) (2020-04-24) | ||
@@ -7,0 +14,0 @@ |
@@ -42,7 +42,7 @@ "use strict"; | ||
function() { | ||
${esModule ? `update(content);` : `var newContent = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
${esModule ? 'update(content);' : `content = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
newContent = newContent.__esModule ? newContent.default : newContent; | ||
content = content.__esModule ? content.default : content; | ||
update(newContent);`} | ||
update(content);`} | ||
} | ||
@@ -95,7 +95,7 @@ ); | ||
update(content); | ||
}` : `var newContent = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
}` : `content = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
newContent = newContent.__esModule ? newContent.default : newContent; | ||
content = content.__esModule ? content.default : content; | ||
if (!isEqualLocals(oldLocals, newContent.locals)) { | ||
if (!isEqualLocals(oldLocals, content.locals)) { | ||
module.hot.invalidate(); | ||
@@ -106,6 +106,6 @@ | ||
oldLocals = newContent.locals; | ||
oldLocals = content.locals; | ||
if (update && refs > 0) { | ||
update(newContent); | ||
update(content); | ||
}`} | ||
@@ -183,11 +183,11 @@ } | ||
update(content);` : `var newContent = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
update(content);` : `content = require(${_loaderUtils.default.stringifyRequest(this, `!!${request}`)}); | ||
newContent = newContent.__esModule ? newContent.default : newContent; | ||
content = content.__esModule ? content.default : content; | ||
if (typeof newContent === 'string') { | ||
newContent = [[module.id, newContent, '']]; | ||
if (typeof content === 'string') { | ||
content = [[module.id, content, '']]; | ||
} | ||
if (!isEqualLocals(oldLocals, newContent.locals)) { | ||
if (!isEqualLocals(oldLocals, content.locals)) { | ||
module.hot.invalidate(); | ||
@@ -198,5 +198,5 @@ | ||
oldLocals = newContent.locals; | ||
oldLocals = content.locals; | ||
update(newContent);`} | ||
update(content);`} | ||
} | ||
@@ -203,0 +203,0 @@ ) |
{ | ||
"name": "style-loader", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "style loader module for webpack", | ||
@@ -60,3 +60,3 @@ "license": "MIT", | ||
"cross-env": "^7.0.2", | ||
"css-loader": "^3.5.2", | ||
"css-loader": "^3.5.3", | ||
"del": "^5.1.0", | ||
@@ -76,3 +76,3 @@ "del-cli": "^3.0.0", | ||
"prettier": "^2.0.5", | ||
"sass": "^1.26.3", | ||
"sass": "^1.26.5", | ||
"sass-loader": "^8.0.2", | ||
@@ -79,0 +79,0 @@ "semver": "^7.3.2", |
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
53448