UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

9 lines (8 loc) 292 B
function makePluginWebOnly(plugin) { const og = plugin.transform; return og && (plugin.transform = function (...args) { if (this.environment.name === "client") return og.call(this, ...args); }), plugin; } export { makePluginWebOnly }; //# sourceMappingURL=makePluginWebOnly.mjs.map