UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

1 lines • 670 B
{"version":3,"file":"watchFile.js","names":[],"sources":["esm/utils/watchFile.js"],"sourcesContent":["const WATCH_FILE_KEY = \"__oneWatchFile\";\nfunction watchFile(path) {\n if (typeof window !== \"undefined\") return;\n const impl = globalThis[WATCH_FILE_KEY];\n if (impl) {\n impl(path);\n }\n}\nfunction _registerWatchFileImpl(impl) {\n globalThis[WATCH_FILE_KEY] = impl;\n}\nexport {\n _registerWatchFileImpl,\n watchFile\n};\n//# sourceMappingURL=watchFile.js.map\n"],"mappings":";AAAA,MAAM,iBAAiB;AACvB,SAAS,UAAU,MAAM;CACvB,IAAI,OAAO,WAAW,aAAa;CACnC,MAAM,OAAO,WAAW;CACxB,IAAI,MAAM;EACR,KAAK,IAAI;CACX;AACF;AACA,SAAS,uBAAuB,MAAM;CACpC,WAAW,kBAAkB;AAC/B"}