UNPKG

one

Version:

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

18 lines (17 loc) 480 B
function makePluginWebOnly(plugin) { var og = plugin.transform; if (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; } return og.call(this, ...args); }; } return plugin; } export { makePluginWebOnly }; //# sourceMappingURL=makePluginWebOnly.native.js.map