UNPKG

one

Version:

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

10 lines (9 loc) 412 B
function makePluginWebOnly(plugin) { var og = plugin.transform; return og && (plugin.transform = function () { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; if (this.environment.name === "client") return og.call(this, ...args); }), plugin; } export { makePluginWebOnly }; //# sourceMappingURL=makePluginWebOnly.native.js.map