one
Version:
One is a new React Framework that makes Vite serve both native and web.
12 lines (11 loc) • 334 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.mjs.map