mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
10 lines
241 B
JavaScript
10 lines
241 B
JavaScript
module.exports.reload = function ({ type, path }) {
|
|
return `
|
|
if (module.hot) {
|
|
module.hot.accept();
|
|
module.hot.dispose(() => {
|
|
global.hmrRefresh({ type: '${type}', path: '${path}' });
|
|
})
|
|
}
|
|
`};
|