UNPKG

@devup-ui/webpack-plugin

Version:

Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor

17 lines (16 loc) 419 B
import { getCss as i } from "@devup-ui/wasm"; let r = "", c = ""; const u = function(n, t, l) { var e; const { watch: o } = this.getOptions(); if (!o) return this.callback(null, i()); const s = ((e = this._compiler) == null ? void 0 : e.__DEVUP_CACHE) || n.toString(); if (c === s) { this.callback(null, r, t, l); return; } c = s, this.callback(null, r = i(), t, l); }; export { u as default };