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