UNPKG

one

Version:

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

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