@devup-ui/webpack-plugin 1.0.34 → 1.0.36
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.
- package/dist/loader.cjs +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +11 -5
- package/package.json +3 -3
package/dist/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("node:fs/promises"),s=require("node:path"),i=require("@devup-ui/wasm"),S=function(d){const{watch:l,package:f,cssDir:a,sheetFile:m,classMapFile:F,fileMapFile:g,singleCss:w}=this.getOptions(),o=this.async(),_=this.resourcePath;try{let e=s.relative(s.dirname(this.resourcePath),a).replaceAll("\\","/");e.startsWith("./")||(e=`./${e}`);const{code:c,css:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("node:fs/promises"),s=require("node:path"),i=require("@devup-ui/wasm"),S=function(d){const{watch:l,package:f,cssDir:a,sheetFile:m,classMapFile:F,fileMapFile:g,singleCss:w}=this.getOptions(),o=this.async(),_=this.resourcePath;try{let e=s.relative(s.dirname(this.resourcePath),a).replaceAll("\\","/");e.startsWith("./")||(e=`./${e}`);const{code:c,css:M="",map:n,cssFile:u,updatedBaseStyle:P}=i.codeExtract(_,d.toString(),f,e,w,!1,!0),p=n?JSON.parse(n):null,r=[];if(P&&r.push(t.writeFile(s.join(a,"devup-ui.css"),i.getCss(null,!1),"utf-8")),u){const h=`${this.resourcePath} ${Date.now()}`;l&&this._compiler&&(this._compiler.__DEVUP_CACHE=h),r.push(t.writeFile(s.join(a,s.basename(u)),l?`/* ${h} */`:M)),l&&r.push(t.writeFile(m,i.exportSheet()),t.writeFile(F,i.exportClassMap()),t.writeFile(g,i.exportFileMap())),Promise.all(r).catch(console.error).finally(()=>o(null,c,p));return}o(null,c,p)}catch(e){o(e)}};exports.default=S;
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,EAAE,2BAA2B,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,EAAE,2BAA2B,CAAC,oBAAoB,CAwElE,CAAA;AACH,eAAe,aAAa,CAAA"}
|
package/dist/loader.js
CHANGED
|
@@ -17,7 +17,13 @@ const A = function(h) {
|
|
|
17
17
|
"/"
|
|
18
18
|
);
|
|
19
19
|
e.startsWith("./") || (e = `./${e}`);
|
|
20
|
-
const {
|
|
20
|
+
const {
|
|
21
|
+
code: o,
|
|
22
|
+
css: x = "",
|
|
23
|
+
map: l,
|
|
24
|
+
cssFile: c,
|
|
25
|
+
updatedBaseStyle: C
|
|
26
|
+
} = S(
|
|
21
27
|
P,
|
|
22
28
|
h.toString(),
|
|
23
29
|
f,
|
|
@@ -25,15 +31,15 @@ const A = function(h) {
|
|
|
25
31
|
F,
|
|
26
32
|
!1,
|
|
27
33
|
!0
|
|
28
|
-
), n =
|
|
34
|
+
), n = l ? JSON.parse(l) : null, s = [];
|
|
29
35
|
if (C && s.push(
|
|
30
36
|
t(u(i, "devup-ui.css"), $(null, !1), "utf-8")
|
|
31
|
-
),
|
|
37
|
+
), c) {
|
|
32
38
|
const p = `${this.resourcePath} ${Date.now()}`;
|
|
33
39
|
r && this._compiler && (this._compiler.__DEVUP_CACHE = p), s.push(
|
|
34
40
|
t(
|
|
35
|
-
u(i, y(
|
|
36
|
-
r ? `/* ${p} */` :
|
|
41
|
+
u(i, y(c)),
|
|
42
|
+
r ? `/* ${p} */` : x
|
|
37
43
|
)
|
|
38
44
|
), r && s.push(
|
|
39
45
|
t(m, b()),
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"webpack"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "1.0.
|
|
21
|
+
"version": "1.0.36",
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@devup-ui/wasm": "1.0.
|
|
48
|
+
"@devup-ui/wasm": "1.0.35"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@devup-ui/wasm": "*"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"vite": "^7.1.
|
|
54
|
+
"vite": "^7.1.5",
|
|
55
55
|
"@types/webpack": "^5.28.5",
|
|
56
56
|
"vite-plugin-dts": "^4.5.4",
|
|
57
57
|
"vitest": "^3.2.4",
|