Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit f627a02

Browse files
author
Alexander Vakrilov
authored
feat(hmr): add hmrUpdate function (#689)
1 parent 47e63f1 commit f627a02

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

hmr/hmr-update.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = () => {
2+
const update = require("../hot");
3+
const fileSystemModule = require("tns-core-modules/file-system");
4+
const applicationFiles = fileSystemModule.knownFolders.currentApp();
5+
update(__webpack_require__["h"](), filename => applicationFiles.getFile(filename));
6+
}

hmr/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports.hmrUpdate = require("./hmr-update");

0 commit comments

Comments
 (0)