Skip to content

Commit

Permalink
update: package
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangjiu committed Apr 11, 2018
1 parent 31e56eb commit 2b3ca67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function (content) {
recognizeSelfClosing: true,
sync: true
});

// <style> exists
const sanStyle = webpackContext._compilation.__sanParts__.style;
if (sanStyle.content) {
Expand Down Expand Up @@ -60,11 +60,11 @@ module.exports = function (content) {
}
module.hot.accept()
var id = '${hotId}'
var default = module.exports ? module.exports.default : module.__proto__.exports.default
if(!module.hot.data) {
hotApi.createRecord(id, module.__proto__.exports.default)
hotApi.createRecord(id, default)
}else{
hotApi.reload(id, module.__proto__.exports.default)
hotApi.reload(id, default)
}
}
`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "san-webpack-loader",
"version": "1.0.5",
"version": "1.0.6",
"description": "🌈 a webpack-v4 loader for San.js ☄️",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 2b3ca67

Please sign in to comment.