one
Version:
One is a new React Framework that makes Vite serve both native and web.
11 lines • 478 B
TypeScript
/**
* babel plugin for native (metro) builds that enforces environment guard imports.
*
* in native builds, `native-only` imports are allowed (removed as no-ops),
* while `server-only`, `client-only`, and `web-only` imports are replaced
* with a throw statement.
*/
import type { PluginObj } from '@babel/core';
declare function environmentGuardBabelPlugin(_: unknown): PluginObj;
export default environmentGuardBabelPlugin;
//# sourceMappingURL=environment-guard.d.ts.map