wesl-plugin 0.6.7 → 0.6.9
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/{WeslPlugin-DjY8zodn.js → WeslPlugin-DMbyxIJT.js} +184 -204
- package/dist/plugins/astro.js +1 -1
- package/dist/plugins/esbuild.d.ts +2 -2
- package/dist/plugins/esbuild.js +1 -1
- package/dist/plugins/farm.d.ts +2 -2
- package/dist/plugins/farm.js +1 -1
- package/dist/plugins/nuxt.d.ts +3 -4
- package/dist/plugins/nuxt.js +3 -3
- package/dist/plugins/rollup.d.ts +2 -2
- package/dist/plugins/rollup.js +1 -1
- package/dist/plugins/rspack.js +1 -1
- package/dist/plugins/vite.d.ts +2 -2
- package/dist/plugins/vite.js +2 -2
- package/dist/plugins/webpack.d.ts +2 -2
- package/dist/plugins/webpack.js +2 -2
- package/dist/{vite-Bx_gff8v.js → vite-Zu9pr_hH.js} +1 -1
- package/dist/{webpack-Bq0QiCAt.js → webpack-x3TCDaWe.js} +1 -1
- package/package.json +4 -5
- package/src/plugins/nuxt.ts +1 -1
|
@@ -11,216 +11,197 @@ import { StringDecoder } from "node:string_decoder";
|
|
|
11
11
|
import toml from "toml";
|
|
12
12
|
import { parseDependencies } from "wesl-tooling";
|
|
13
13
|
|
|
14
|
-
//#region
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
//#region ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/esm/index.js
|
|
15
|
+
const balanced = (a, b, str) => {
|
|
16
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
17
|
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
|
18
|
+
const r = ma !== null && mb != null && range(ma, mb, str);
|
|
19
|
+
return r && {
|
|
20
|
+
start: r[0],
|
|
21
|
+
end: r[1],
|
|
22
|
+
pre: str.slice(0, r[0]),
|
|
23
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
24
|
+
post: str.slice(r[1] + mb.length)
|
|
25
|
+
};
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
28
|
-
get: ((k) => from[k]).bind(null, key),
|
|
29
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
27
|
+
const maybeMatch = (reg, str) => {
|
|
28
|
+
const m = str.match(reg);
|
|
29
|
+
return m ? m[0] : null;
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function maybeMatch(reg, str) {
|
|
56
|
-
var m = str.match(reg);
|
|
57
|
-
return m ? m[0] : null;
|
|
58
|
-
}
|
|
59
|
-
balanced$1.range = range;
|
|
60
|
-
function range(a, b, str) {
|
|
61
|
-
var begs, beg, left, right, result;
|
|
62
|
-
var ai = str.indexOf(a);
|
|
63
|
-
var bi = str.indexOf(b, ai + 1);
|
|
64
|
-
var i = ai;
|
|
65
|
-
if (ai >= 0 && bi > 0) {
|
|
66
|
-
if (a === b) return [ai, bi];
|
|
67
|
-
begs = [];
|
|
68
|
-
left = str.length;
|
|
69
|
-
while (i >= 0 && !result) {
|
|
70
|
-
if (i == ai) {
|
|
71
|
-
begs.push(i);
|
|
72
|
-
ai = str.indexOf(a, i + 1);
|
|
73
|
-
} else if (begs.length == 1) result = [begs.pop(), bi];
|
|
74
|
-
else {
|
|
75
|
-
beg = begs.pop();
|
|
76
|
-
if (beg < left) {
|
|
77
|
-
left = beg;
|
|
78
|
-
right = bi;
|
|
79
|
-
}
|
|
80
|
-
bi = str.indexOf(b, i + 1);
|
|
31
|
+
const range = (a, b, str) => {
|
|
32
|
+
let begs, beg, left, right = void 0, result;
|
|
33
|
+
let ai = str.indexOf(a);
|
|
34
|
+
let bi = str.indexOf(b, ai + 1);
|
|
35
|
+
let i = ai;
|
|
36
|
+
if (ai >= 0 && bi > 0) {
|
|
37
|
+
if (a === b) return [ai, bi];
|
|
38
|
+
begs = [];
|
|
39
|
+
left = str.length;
|
|
40
|
+
while (i >= 0 && !result) {
|
|
41
|
+
if (i === ai) {
|
|
42
|
+
begs.push(i);
|
|
43
|
+
ai = str.indexOf(a, i + 1);
|
|
44
|
+
} else if (begs.length === 1) {
|
|
45
|
+
const r = begs.pop();
|
|
46
|
+
if (r !== void 0) result = [r, bi];
|
|
47
|
+
} else {
|
|
48
|
+
beg = begs.pop();
|
|
49
|
+
if (beg !== void 0 && beg < left) {
|
|
50
|
+
left = beg;
|
|
51
|
+
right = bi;
|
|
81
52
|
}
|
|
82
|
-
|
|
53
|
+
bi = str.indexOf(b, i + 1);
|
|
83
54
|
}
|
|
84
|
-
|
|
55
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
85
56
|
}
|
|
86
|
-
|
|
57
|
+
if (begs.length && right !== void 0) result = [left, right];
|
|
87
58
|
}
|
|
88
|
-
|
|
59
|
+
return result;
|
|
60
|
+
};
|
|
89
61
|
|
|
90
62
|
//#endregion
|
|
91
|
-
//#region ../../node_modules/.pnpm
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
63
|
+
//#region ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
|
|
64
|
+
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
65
|
+
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
66
|
+
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
67
|
+
const escComma = "\0COMMA" + Math.random() + "\0";
|
|
68
|
+
const escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
69
|
+
const escSlashPattern = new RegExp(escSlash, "g");
|
|
70
|
+
const escOpenPattern = new RegExp(escOpen, "g");
|
|
71
|
+
const escClosePattern = new RegExp(escClose, "g");
|
|
72
|
+
const escCommaPattern = new RegExp(escComma, "g");
|
|
73
|
+
const escPeriodPattern = new RegExp(escPeriod, "g");
|
|
74
|
+
const slashPattern = /\\\\/g;
|
|
75
|
+
const openPattern = /\\{/g;
|
|
76
|
+
const closePattern = /\\}/g;
|
|
77
|
+
const commaPattern = /\\,/g;
|
|
78
|
+
const periodPattern = /\\./g;
|
|
79
|
+
function numeric(str) {
|
|
80
|
+
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
81
|
+
}
|
|
82
|
+
function escapeBraces(str) {
|
|
83
|
+
return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
|
|
84
|
+
}
|
|
85
|
+
function unescapeBraces(str) {
|
|
86
|
+
return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Basically just str.split(","), but handling cases
|
|
90
|
+
* where we have nested braced sections, which should be
|
|
91
|
+
* treated as individual members, like {a,{b,c},d}
|
|
92
|
+
*/
|
|
93
|
+
function parseCommaParts(str) {
|
|
94
|
+
if (!str) return [""];
|
|
95
|
+
const parts = [];
|
|
96
|
+
const m = balanced("{", "}", str);
|
|
97
|
+
if (!m) return str.split(",");
|
|
98
|
+
const { pre, body, post } = m;
|
|
99
|
+
const p = pre.split(",");
|
|
100
|
+
p[p.length - 1] += "{" + body + "}";
|
|
101
|
+
const postParts = parseCommaParts(post);
|
|
102
|
+
if (post.length) {
|
|
103
|
+
p[p.length - 1] += postParts.shift();
|
|
104
|
+
p.push.apply(p, postParts);
|
|
105
|
+
}
|
|
106
|
+
parts.push.apply(parts, p);
|
|
107
|
+
return parts;
|
|
108
|
+
}
|
|
109
|
+
function expand(str) {
|
|
110
|
+
if (!str) return [];
|
|
111
|
+
if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
|
|
112
|
+
return expand_(escapeBraces(str), true).map(unescapeBraces);
|
|
113
|
+
}
|
|
114
|
+
function embrace(str) {
|
|
115
|
+
return "{" + str + "}";
|
|
116
|
+
}
|
|
117
|
+
function isPadded(el) {
|
|
118
|
+
return /^-?0\d/.test(el);
|
|
119
|
+
}
|
|
120
|
+
function lte(i, y) {
|
|
121
|
+
return i <= y;
|
|
122
|
+
}
|
|
123
|
+
function gte(i, y) {
|
|
124
|
+
return i >= y;
|
|
125
|
+
}
|
|
126
|
+
function expand_(str, isTop) {
|
|
127
|
+
/** @type {string[]} */
|
|
128
|
+
const expansions = [];
|
|
129
|
+
const m = balanced("{", "}", str);
|
|
130
|
+
if (!m) return [str];
|
|
131
|
+
const pre = m.pre;
|
|
132
|
+
const post = m.post.length ? expand_(m.post, false) : [""];
|
|
133
|
+
if (/\$$/.test(m.pre)) for (let k = 0; k < post.length; k++) {
|
|
134
|
+
const expansion = pre + "{" + m.body + "}" + post[k];
|
|
135
|
+
expansions.push(expansion);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
139
|
+
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
140
|
+
const isSequence = isNumericSequence || isAlphaSequence;
|
|
141
|
+
const isOptions = m.body.indexOf(",") >= 0;
|
|
142
|
+
if (!isSequence && !isOptions) {
|
|
143
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
144
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
145
|
+
return expand_(str);
|
|
146
|
+
}
|
|
147
|
+
return [str];
|
|
153
148
|
}
|
|
149
|
+
let n;
|
|
150
|
+
if (isSequence) n = m.body.split(/\.\./);
|
|
154
151
|
else {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
if (m.post.match(/,.*\}/)) {
|
|
161
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
162
|
-
return expand$1(str);
|
|
163
|
-
}
|
|
164
|
-
return [str];
|
|
152
|
+
n = parseCommaParts(m.body);
|
|
153
|
+
if (n.length === 1 && n[0] !== void 0) {
|
|
154
|
+
n = expand_(n[0], false).map(embrace);
|
|
155
|
+
/* c8 ignore start */
|
|
156
|
+
if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
|
|
165
157
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
158
|
+
}
|
|
159
|
+
let N;
|
|
160
|
+
if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
|
|
161
|
+
const x = numeric(n[0]);
|
|
162
|
+
const y = numeric(n[1]);
|
|
163
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
164
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1;
|
|
165
|
+
let test = lte;
|
|
166
|
+
const reverse = y < x;
|
|
167
|
+
if (reverse) {
|
|
168
|
+
incr *= -1;
|
|
169
|
+
test = gte;
|
|
176
170
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
var c;
|
|
193
|
-
if (isAlphaSequence) {
|
|
194
|
-
c = String.fromCharCode(i);
|
|
195
|
-
if (c === "\\") c = "";
|
|
196
|
-
} else {
|
|
197
|
-
c = String(i);
|
|
198
|
-
if (pad) {
|
|
199
|
-
var need = width - c.length;
|
|
200
|
-
if (need > 0) {
|
|
201
|
-
var z = new Array(need + 1).join("0");
|
|
202
|
-
if (i < 0) c = "-" + z + c.slice(1);
|
|
203
|
-
else c = z + c;
|
|
204
|
-
}
|
|
171
|
+
const pad = n.some(isPadded);
|
|
172
|
+
N = [];
|
|
173
|
+
for (let i = x; test(i, y); i += incr) {
|
|
174
|
+
let c;
|
|
175
|
+
if (isAlphaSequence) {
|
|
176
|
+
c = String.fromCharCode(i);
|
|
177
|
+
if (c === "\\") c = "";
|
|
178
|
+
} else {
|
|
179
|
+
c = String(i);
|
|
180
|
+
if (pad) {
|
|
181
|
+
const need = width - c.length;
|
|
182
|
+
if (need > 0) {
|
|
183
|
+
const z = new Array(need + 1).join("0");
|
|
184
|
+
if (i < 0) c = "-" + z + c.slice(1);
|
|
185
|
+
else c = z + c;
|
|
205
186
|
}
|
|
206
187
|
}
|
|
207
|
-
N.push(c);
|
|
208
188
|
}
|
|
209
|
-
|
|
210
|
-
N = [];
|
|
211
|
-
for (var j = 0; j < n.length; j++) N.push.apply(N, expand$1(n[j], false));
|
|
212
|
-
}
|
|
213
|
-
for (var j = 0; j < N.length; j++) for (var k = 0; k < post.length; k++) {
|
|
214
|
-
var expansion = pre + N[j] + post[k];
|
|
215
|
-
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
189
|
+
N.push(c);
|
|
216
190
|
}
|
|
191
|
+
} else {
|
|
192
|
+
N = [];
|
|
193
|
+
for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], false));
|
|
194
|
+
}
|
|
195
|
+
for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length; k++) {
|
|
196
|
+
const expansion = pre + N[j] + post[k];
|
|
197
|
+
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
217
198
|
}
|
|
218
|
-
return expansions;
|
|
219
199
|
}
|
|
220
|
-
|
|
200
|
+
return expansions;
|
|
201
|
+
}
|
|
221
202
|
|
|
222
203
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
204
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
224
205
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
225
206
|
const assertValidPattern = (pattern) => {
|
|
226
207
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
@@ -228,7 +209,7 @@ const assertValidPattern = (pattern) => {
|
|
|
228
209
|
};
|
|
229
210
|
|
|
230
211
|
//#endregion
|
|
231
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
212
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
232
213
|
const posixClasses = {
|
|
233
214
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
234
215
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -354,7 +335,7 @@ const parseClass = (glob$1, position) => {
|
|
|
354
335
|
};
|
|
355
336
|
|
|
356
337
|
//#endregion
|
|
357
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
338
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.js
|
|
358
339
|
/**
|
|
359
340
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
360
341
|
*
|
|
@@ -374,7 +355,7 @@ const unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
374
355
|
};
|
|
375
356
|
|
|
376
357
|
//#endregion
|
|
377
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
358
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
|
|
378
359
|
const types = new Set([
|
|
379
360
|
"!",
|
|
380
361
|
"?",
|
|
@@ -739,7 +720,7 @@ var AST = class AST {
|
|
|
739
720
|
};
|
|
740
721
|
|
|
741
722
|
//#endregion
|
|
742
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
723
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.js
|
|
743
724
|
/**
|
|
744
725
|
* Escape all magic characters in a glob pattern.
|
|
745
726
|
*
|
|
@@ -754,8 +735,7 @@ const escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
754
735
|
};
|
|
755
736
|
|
|
756
737
|
//#endregion
|
|
757
|
-
//#region ../../node_modules/.pnpm/minimatch@10.0.
|
|
758
|
-
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
738
|
+
//#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
|
|
759
739
|
const minimatch = (p, pattern, options = {}) => {
|
|
760
740
|
assertValidPattern(pattern);
|
|
761
741
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -865,7 +845,7 @@ minimatch.defaults = defaults;
|
|
|
865
845
|
const braceExpand = (pattern, options = {}) => {
|
|
866
846
|
assertValidPattern(pattern);
|
|
867
847
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) return [pattern];
|
|
868
|
-
return (
|
|
848
|
+
return expand(pattern);
|
|
869
849
|
};
|
|
870
850
|
minimatch.braceExpand = braceExpand;
|
|
871
851
|
const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
@@ -4895,7 +4875,7 @@ const Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
|
4895
4875
|
const PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
4896
4876
|
|
|
4897
4877
|
//#endregion
|
|
4898
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
4878
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/pattern.js
|
|
4899
4879
|
const isPatternList = (pl) => pl.length >= 1;
|
|
4900
4880
|
const isGlobList = (gl) => gl.length >= 1;
|
|
4901
4881
|
/**
|
|
@@ -5058,7 +5038,7 @@ var Pattern = class Pattern {
|
|
|
5058
5038
|
};
|
|
5059
5039
|
|
|
5060
5040
|
//#endregion
|
|
5061
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5041
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/ignore.js
|
|
5062
5042
|
const defaultPlatform$1 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
5063
5043
|
/**
|
|
5064
5044
|
* Class used to process ignored patterns
|
|
@@ -5130,7 +5110,7 @@ var Ignore = class {
|
|
|
5130
5110
|
};
|
|
5131
5111
|
|
|
5132
5112
|
//#endregion
|
|
5133
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5113
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/processor.js
|
|
5134
5114
|
/**
|
|
5135
5115
|
* A cache of which patterns have been processed for a given Path
|
|
5136
5116
|
*/
|
|
@@ -5324,7 +5304,7 @@ var Processor = class Processor {
|
|
|
5324
5304
|
};
|
|
5325
5305
|
|
|
5326
5306
|
//#endregion
|
|
5327
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5307
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/walker.js
|
|
5328
5308
|
const makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
5329
5309
|
/**
|
|
5330
5310
|
* basic walking utilities that all the glob walker types use
|
|
@@ -5608,7 +5588,7 @@ var GlobStream = class extends GlobUtil {
|
|
|
5608
5588
|
};
|
|
5609
5589
|
|
|
5610
5590
|
//#endregion
|
|
5611
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5591
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/glob.js
|
|
5612
5592
|
const defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
5613
5593
|
/**
|
|
5614
5594
|
* An object that can perform glob pattern traversals.
|
|
@@ -5799,7 +5779,7 @@ var Glob = class {
|
|
|
5799
5779
|
};
|
|
5800
5780
|
|
|
5801
5781
|
//#endregion
|
|
5802
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5782
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/has-magic.js
|
|
5803
5783
|
/**
|
|
5804
5784
|
* Return true if the patterns provided contain any magic glob characters,
|
|
5805
5785
|
* given the options provided.
|
|
@@ -5818,7 +5798,7 @@ const hasMagic = (pattern, options = {}) => {
|
|
|
5818
5798
|
};
|
|
5819
5799
|
|
|
5820
5800
|
//#endregion
|
|
5821
|
-
//#region ../../node_modules/.pnpm/glob@11.0.
|
|
5801
|
+
//#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
|
|
5822
5802
|
function globStreamSync(pattern, options = {}) {
|
|
5823
5803
|
return new Glob(pattern, options).streamSync();
|
|
5824
5804
|
}
|
package/dist/plugins/astro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as esbuild11 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
5
|
+
declare const _default: (options: WeslPluginOptions) => esbuild11.Plugin;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/plugins/esbuild.js
CHANGED
package/dist/plugins/farm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _farmfe_core6 from "@farmfe/core";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/farm.d.ts
|
|
5
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
5
|
+
declare const _default: (options: WeslPluginOptions) => _farmfe_core6.JsPlugin;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/plugins/farm.js
CHANGED
package/dist/plugins/nuxt.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _nuxt_schema3 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/nuxt.d.ts
|
|
5
|
-
|
|
6
|
-
declare const _default: _nuxt_schema13.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
5
|
+
declare const _default: _nuxt_schema3.NuxtModule<WeslPluginOptions, WeslPluginOptions, false>;
|
|
7
6
|
|
|
8
7
|
//#endregion
|
|
9
|
-
export {
|
|
8
|
+
export { _default as default };
|
package/dist/plugins/nuxt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../WeslPlugin-
|
|
2
|
-
import { vite_default } from "../vite-
|
|
3
|
-
import { webpack_default } from "../webpack-
|
|
1
|
+
import "../WeslPlugin-DMbyxIJT.js";
|
|
2
|
+
import { vite_default } from "../vite-Zu9pr_hH.js";
|
|
3
|
+
import { webpack_default } from "../webpack-x3TCDaWe.js";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
5
|
import "@nuxt/schema";
|
|
6
6
|
|
package/dist/plugins/rollup.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as rollup1 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/rollup.d.ts
|
|
5
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
5
|
+
declare const _default: (options: WeslPluginOptions) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/plugins/rollup.js
CHANGED
package/dist/plugins/rspack.js
CHANGED
package/dist/plugins/vite.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vite8 from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/vite.d.ts
|
|
5
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
5
|
+
declare const _default: (options: WeslPluginOptions) => vite8.Plugin<any> | vite8.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/plugins/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as webpack13 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/webpack.d.ts
|
|
5
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
5
|
+
declare const _default: (options: WeslPluginOptions) => webpack13.WebpackPluginInstance;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/plugins/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wesl-plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.9",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"import-meta-resolve": "^4.1.0",
|
|
7
7
|
"toml": "^3.0.0",
|
|
8
8
|
"unplugin": "^2.3.4",
|
|
9
|
-
"wesl": "0.6.
|
|
10
|
-
"wesl-tooling": "0.6.
|
|
9
|
+
"wesl": "0.6.9",
|
|
10
|
+
"wesl-tooling": "0.6.9"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@nuxt/kit": "^3.17.3",
|
|
@@ -92,11 +92,10 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
|
-
"echo": "echo",
|
|
96
95
|
"build": "tsdown",
|
|
97
96
|
"dev": "tsdown --watch src --watch ../wesl/dist",
|
|
98
97
|
"lint": "eslint .",
|
|
99
98
|
"play": "npm -C playground run dev",
|
|
100
|
-
"typecheck": "
|
|
99
|
+
"typecheck": "tsgo"
|
|
101
100
|
}
|
|
102
101
|
}
|
package/src/plugins/nuxt.ts
CHANGED