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.
@@ -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 rolldown:runtime
15
- var __create = Object.create;
16
- var __defProp = Object.defineProperty;
17
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
18
- var __getOwnPropNames = Object.getOwnPropertyNames;
19
- var __getProtoOf = Object.getPrototypeOf;
20
- var __hasOwnProp = Object.prototype.hasOwnProperty;
21
- var __commonJS = (cb, mod) => function() {
22
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
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
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
- key = keys[i];
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
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
35
- value: mod,
36
- enumerable: true
37
- }) : target, mod));
38
-
39
- //#endregion
40
- //#region ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
41
- var require_balanced_match = __commonJS({ "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
42
- module.exports = balanced$1;
43
- function balanced$1(a, b, str) {
44
- if (a instanceof RegExp) a = maybeMatch(a, str);
45
- if (b instanceof RegExp) b = maybeMatch(b, str);
46
- var r = range(a, b, str);
47
- return r && {
48
- start: r[0],
49
- end: r[1],
50
- pre: str.slice(0, r[0]),
51
- body: str.slice(r[0] + a.length, r[1]),
52
- post: str.slice(r[1] + b.length)
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
- i = ai < bi && ai >= 0 ? ai : bi;
53
+ bi = str.indexOf(b, i + 1);
83
54
  }
84
- if (begs.length) result = [left, right];
55
+ i = ai < bi && ai >= 0 ? ai : bi;
85
56
  }
86
- return result;
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/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
92
- var require_brace_expansion = __commonJS({ "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
93
- var balanced = require_balanced_match();
94
- module.exports = expandTop;
95
- var escSlash = "\0SLASH" + Math.random() + "\0";
96
- var escOpen = "\0OPEN" + Math.random() + "\0";
97
- var escClose = "\0CLOSE" + Math.random() + "\0";
98
- var escComma = "\0COMMA" + Math.random() + "\0";
99
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
100
- function numeric(str) {
101
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
102
- }
103
- function escapeBraces(str) {
104
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
105
- }
106
- function unescapeBraces(str) {
107
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
108
- }
109
- function parseCommaParts(str) {
110
- if (!str) return [""];
111
- var parts = [];
112
- var m = balanced("{", "}", str);
113
- if (!m) return str.split(",");
114
- var pre = m.pre;
115
- var body = m.body;
116
- var post = m.post;
117
- var p = pre.split(",");
118
- p[p.length - 1] += "{" + body + "}";
119
- var postParts = parseCommaParts(post);
120
- if (post.length) {
121
- p[p.length - 1] += postParts.shift();
122
- p.push.apply(p, postParts);
123
- }
124
- parts.push.apply(parts, p);
125
- return parts;
126
- }
127
- function expandTop(str) {
128
- if (!str) return [];
129
- if (str.substr(0, 2) === "{}") str = "\\{\\}" + str.substr(2);
130
- return expand$1(escapeBraces(str), true).map(unescapeBraces);
131
- }
132
- function embrace(str) {
133
- return "{" + str + "}";
134
- }
135
- function isPadded(el) {
136
- return /^-?0\d/.test(el);
137
- }
138
- function lte(i, y) {
139
- return i <= y;
140
- }
141
- function gte(i, y) {
142
- return i >= y;
143
- }
144
- function expand$1(str, isTop) {
145
- var expansions = [];
146
- var m = balanced("{", "}", str);
147
- if (!m) return [str];
148
- var pre = m.pre;
149
- var post = m.post.length ? expand$1(m.post, false) : [""];
150
- if (/\$$/.test(m.pre)) for (var k = 0; k < post.length; k++) {
151
- var expansion = pre + "{" + m.body + "}" + post[k];
152
- expansions.push(expansion);
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
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
156
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
157
- var isSequence = isNumericSequence || isAlphaSequence;
158
- var isOptions = m.body.indexOf(",") >= 0;
159
- if (!isSequence && !isOptions) {
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
- var n;
167
- if (isSequence) n = m.body.split(/\.\./);
168
- else {
169
- n = parseCommaParts(m.body);
170
- if (n.length === 1) {
171
- n = expand$1(n[0], false).map(embrace);
172
- if (n.length === 1) return post.map(function(p) {
173
- return m.pre + n[0] + p;
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
- var N;
178
- if (isSequence) {
179
- var x = numeric(n[0]);
180
- var y = numeric(n[1]);
181
- var width = Math.max(n[0].length, n[1].length);
182
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
183
- var test = lte;
184
- var reverse = y < x;
185
- if (reverse) {
186
- incr *= -1;
187
- test = gte;
188
- }
189
- var pad = n.some(isPadded);
190
- N = [];
191
- for (var i = x; test(i, y); i += incr) {
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
- } else {
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.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
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.1/node_modules/minimatch/dist/esm/brace-expressions.js
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.1/node_modules/minimatch/dist/esm/unescape.js
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.1/node_modules/minimatch/dist/esm/ast.js
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.1/node_modules/minimatch/dist/esm/escape.js
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.1/node_modules/minimatch/dist/esm/index.js
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 (0, import_brace_expansion.default)(pattern);
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.2/node_modules/glob/dist/esm/pattern.js
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.2/node_modules/glob/dist/esm/ignore.js
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.2/node_modules/glob/dist/esm/processor.js
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.2/node_modules/glob/dist/esm/walker.js
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.2/node_modules/glob/dist/esm/glob.js
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.2/node_modules/glob/dist/esm/has-magic.js
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.2/node_modules/glob/dist/esm/index.js
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
  }
@@ -1,4 +1,4 @@
1
- import { WeslPlugin_default } from "../WeslPlugin-DjY8zodn.js";
1
+ import { WeslPlugin_default } from "../WeslPlugin-DMbyxIJT.js";
2
2
 
3
3
  //#region src/plugins/astro.ts
4
4
  var astro_default = (options) => ({
@@ -1,8 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as esbuild12 from "esbuild";
2
+ import * as esbuild11 from "esbuild";
3
3
 
4
4
  //#region src/plugins/esbuild.d.ts
5
- declare const _default: (options: WeslPluginOptions) => esbuild12.Plugin;
5
+ declare const _default: (options: WeslPluginOptions) => esbuild11.Plugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "../WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "../WeslPlugin-DMbyxIJT.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/esbuild.ts
@@ -1,8 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as _farmfe_core8 from "@farmfe/core";
2
+ import * as _farmfe_core6 from "@farmfe/core";
3
3
 
4
4
  //#region src/plugins/farm.d.ts
5
- declare const _default: (options: WeslPluginOptions) => _farmfe_core8.JsPlugin;
5
+ declare const _default: (options: WeslPluginOptions) => _farmfe_core6.JsPlugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "../WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "../WeslPlugin-DMbyxIJT.js";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/farm.ts
@@ -1,9 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as _nuxt_schema13 from "@nuxt/schema";
2
+ import * as _nuxt_schema3 from "@nuxt/schema";
3
3
 
4
4
  //#region src/plugins/nuxt.d.ts
5
- interface ModuleOptions extends WeslPluginOptions {}
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 { ModuleOptions, _default as default };
8
+ export { _default as default };
@@ -1,6 +1,6 @@
1
- import "../WeslPlugin-DjY8zodn.js";
2
- import { vite_default } from "../vite-Bx_gff8v.js";
3
- import { webpack_default } from "../webpack-Bq0QiCAt.js";
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
 
@@ -1,8 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as rollup5 from "rollup";
2
+ import * as rollup1 from "rollup";
3
3
 
4
4
  //#region src/plugins/rollup.d.ts
5
- declare const _default: (options: WeslPluginOptions) => rollup5.Plugin<any> | rollup5.Plugin<any>[];
5
+ declare const _default: (options: WeslPluginOptions) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "../WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "../WeslPlugin-DMbyxIJT.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/rollup.ts
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "../WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "../WeslPlugin-DMbyxIJT.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/rspack.ts
@@ -1,8 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as vite1 from "vite";
2
+ import * as vite8 from "vite";
3
3
 
4
4
  //#region src/plugins/vite.d.ts
5
- declare const _default: (options: WeslPluginOptions) => vite1.Plugin<any> | vite1.Plugin<any>[];
5
+ declare const _default: (options: WeslPluginOptions) => vite8.Plugin<any> | vite8.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import "../WeslPlugin-DjY8zodn.js";
2
- import { vite_default } from "../vite-Bx_gff8v.js";
1
+ import "../WeslPlugin-DMbyxIJT.js";
2
+ import { vite_default } from "../vite-Zu9pr_hH.js";
3
3
 
4
4
  export { vite_default as default };
@@ -1,8 +1,8 @@
1
1
  import { WeslPluginOptions } from "../PluginExtension-B9OlwcsY.js";
2
- import * as webpack10 from "webpack";
2
+ import * as webpack13 from "webpack";
3
3
 
4
4
  //#region src/plugins/webpack.d.ts
5
- declare const _default: (options: WeslPluginOptions) => webpack10.WebpackPluginInstance;
5
+ declare const _default: (options: WeslPluginOptions) => webpack13.WebpackPluginInstance;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import "../WeslPlugin-DjY8zodn.js";
2
- import { webpack_default } from "../webpack-Bq0QiCAt.js";
1
+ import "../WeslPlugin-DMbyxIJT.js";
2
+ import { webpack_default } from "../webpack-x3TCDaWe.js";
3
3
 
4
4
  export { webpack_default as default };
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "./WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "./WeslPlugin-DMbyxIJT.js";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/vite.ts
@@ -1,4 +1,4 @@
1
- import { weslPlugin } from "./WeslPlugin-DjY8zodn.js";
1
+ import { weslPlugin } from "./WeslPlugin-DMbyxIJT.js";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/webpack.ts
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "wesl-plugin",
3
3
  "type": "module",
4
- "version": "0.6.7",
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.7",
10
- "wesl-tooling": "0.6.7"
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": "tsc"
99
+ "typecheck": "tsgo"
101
100
  }
102
101
  }
@@ -4,7 +4,7 @@ import vite from "./vite";
4
4
  import webpack from "./webpack";
5
5
  import "@nuxt/schema";
6
6
 
7
- export interface ModuleOptions extends WeslPluginOptions {}
7
+ type ModuleOptions = WeslPluginOptions;
8
8
 
9
9
  export default defineNuxtModule<ModuleOptions>({
10
10
  meta: {