UNPKG

one

Version:

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

12 lines (11 loc) 298 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.js.map