Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion markup-hot-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { reload } = require("./hot-loader-helper");

module.exports = function (source) {
const typeMarkup = "markup";
const modulePath = this.resourcePath.replace(this.context, ".");
const modulePath = this.resourcePath.replace(this.rootContext, ".");
return `${source};${reload({ type: typeMarkup, module: modulePath })}`;
};
2 changes: 1 addition & 1 deletion script-hot-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { reload } = require("./hot-loader-helper");

module.exports = function (source) {
const typeScript = "script";
const modulePath = this.resourcePath.replace(this.context, ".");
const modulePath = this.resourcePath.replace(this.rootContext, ".");
return `${source};${reload({ type: typeScript, module: modulePath })}`;
};
2 changes: 1 addition & 1 deletion style-hot-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { reload } = require("./hot-loader-helper");

module.exports = function (source) {
const typeStyle = "style";
const modulePath = this.resourcePath.replace(this.context, ".");
const modulePath = this.resourcePath.replace(this.rootContext, ".");
return `${source};${reload({ type: typeStyle, module: modulePath })}`;
};