mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
11 lines
422 B
JavaScript
11 lines
422 B
JavaScript
const { reload } = require("./hot-loader-helper");
|
|
const { convertToUnixPath } = require("../lib/utils");
|
|
|
|
module.exports = function (source, map) {
|
|
const typeMarkup = "markup";
|
|
const moduleRelativePath = this.resourcePath.replace(this.rootContext, ".");
|
|
const modulePath = convertToUnixPath(moduleRelativePath);
|
|
|
|
this.callback(null, `${source};${reload({ type: typeMarkup, path: modulePath })}`, map);
|
|
};
|