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