@devup-ui/webpack-plugin 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("@devup-ui/wasm");let n="",c="";function a(t){return t.endsWith("devup-ui.css")?null:parseInt(t.split("devup-ui-")[1].split(".")[0])}const p=function(t,e,s){var l;const{watch:o}=this.getOptions(),u=a(this.resourcePath);if(!o)return this.callback(null,r.getCss(u,!0));const i=((l=this._compiler)==null?void 0:l.__DEVUP_CACHE)||t.toString();if(c===i){this.callback(null,n,e,s);return}c=i,this.callback(null,n=r.getCss(u,!0),e,s)};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@devup-ui/wasm");function n(e){return e.endsWith("devup-ui.css")?null:parseInt(e.split("devup-ui-")[1].split(".")[0])}const r=function(e,u,i){const{watch:l}=this.getOptions(),t=n(this.resourcePath);if(!l)return this.callback(null,s.getCss(t,!0));this.callback(null,s.getCss(t,!0),u,i)};exports.default=r;
@@ -1 +1 @@
1
- {"version":3,"file":"css-loader.d.ts","sourceRoot":"","sources":["../src/css-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAU1D,QAAA,MAAM,gBAAgB,EAAE,2BAA2B,CAAC;IAClD,KAAK,EAAE,OAAO,CAAA;CACf,CAaA,CAAA;AACD,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"css-loader.d.ts","sourceRoot":"","sources":["../src/css-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAO1D,QAAA,MAAM,gBAAgB,EAAE,2BAA2B,CAAC;IAClD,KAAK,EAAE,OAAO,CAAA;CACf,CAKA,CAAA;AACD,eAAe,gBAAgB,CAAA"}
@@ -1,19 +1,12 @@
1
- import { getCss as u } from "@devup-ui/wasm";
2
- let n = "", c = "";
3
- function a(t) {
1
+ import { getCss as s } from "@devup-ui/wasm";
2
+ function l(t) {
4
3
  return t.endsWith("devup-ui.css") ? null : parseInt(t.split("devup-ui-")[1].split(".")[0]);
5
4
  }
6
- const h = function(t, e, i) {
7
- var l;
8
- const { watch: o } = this.getOptions(), s = a(this.resourcePath);
9
- if (!o) return this.callback(null, u(s, !0));
10
- const r = ((l = this._compiler) == null ? void 0 : l.__DEVUP_CACHE) || t.toString();
11
- if (c === r) {
12
- this.callback(null, n, e, i);
13
- return;
14
- }
15
- c = r, this.callback(null, n = u(s, !0), e, i);
5
+ const c = function(t, u, i) {
6
+ const { watch: n } = this.getOptions(), e = l(this.resourcePath);
7
+ if (!n) return this.callback(null, s(e, !0));
8
+ this.callback(null, s(e, !0), u, i);
16
9
  };
17
10
  export {
18
- h as default
11
+ c as default
19
12
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "webpack"
19
19
  ],
20
20
  "type": "module",
21
- "version": "1.0.36",
21
+ "version": "1.0.37",
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
@@ -45,7 +45,7 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "@devup-ui/wasm": "1.0.35"
48
+ "@devup-ui/wasm": "1.0.36"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@devup-ui/wasm": "*"