one
Version:
One is a new React Framework that makes Vite serve both native and web.
13 lines (12 loc) • 341 B
JavaScript
var WATCH_FILE_KEY = "__oneWatchFile";
function watchFile(path) {
if (!(typeof window < "u")) {
var impl = globalThis[WATCH_FILE_KEY];
impl && impl(path);
}
}
function _registerWatchFileImpl(impl) {
globalThis[WATCH_FILE_KEY] = impl;
}
export { _registerWatchFileImpl, watchFile };
//# sourceMappingURL=watchFile.native.js.map