UNPKG

272 BJavaScriptView Raw
1const { reload } = require("./hot-loader-helper");
2
3module.exports = function (source) {
4 const typeMarkup = "markup";
5 const modulePath = this.resourcePath.replace(this.rootContext, ".");
6 return `${source};${reload({ type: typeMarkup, path: modulePath })}`;
7};