wesl-plugin 0.6.50 → 0.6.51

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.
@@ -9780,9 +9780,10 @@ function* exportSubpaths(mPath) {
9780
9780
  *
9781
9781
  * @param weslSrc - Record of WESL source files by path
9782
9782
  * @param projectDir - Project directory for resolving package imports
9783
+ * @param virtualLibNames - Virtual lib names to exclude (e.g., ['test', 'constants'])
9783
9784
  * @returns Dependency paths in npm format (e.g., 'foo/bar', 'foo')
9784
9785
  */
9785
- function parseDependencies(weslSrc, projectDir) {
9786
+ function parseDependencies(weslSrc, projectDir, virtualLibNames = []) {
9786
9787
  let resolver;
9787
9788
  try {
9788
9789
  resolver = new RecordResolver(weslSrc);
@@ -9795,7 +9796,8 @@ function parseDependencies(weslSrc, projectDir) {
9795
9796
  }
9796
9797
  const unbound = findUnboundIdents(resolver);
9797
9798
  if (!unbound) return [];
9798
- const pkgRefs = unbound.filter((modulePath) => modulePath.length > 1 && modulePath[0] !== "constants");
9799
+ const excludeRoots = new Set(["constants", ...virtualLibNames]);
9800
+ const pkgRefs = unbound.filter((modulePath) => modulePath.length > 1 && !excludeRoots.has(modulePath[0]));
9799
9801
  if (pkgRefs.length === 0) return [];
9800
9802
  const projectURL = projectDirURL(projectDir);
9801
9803
  const deps = filterMap(pkgRefs, (mPath) => npmResolveWESL(mPath, projectURL));
@@ -1,4 +1,4 @@
1
- import { t as WeslPlugin_default } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { t as WeslPlugin_default } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
 
3
3
  //#region src/plugins/astro.ts
4
4
  var astro_default = (options) => ({
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/esbuild.ts
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/farm.ts
@@ -1,4 +1,4 @@
1
- import "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import vite_default from "./vite.mjs";
3
3
  import webpack_default from "./webpack.mjs";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/rollup.ts
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/rspack.ts
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/vite.ts
@@ -1,4 +1,4 @@
1
- import { n as weslPlugin } from "../WeslPlugin-DFbg7Qiu.mjs";
1
+ import { n as weslPlugin } from "../WeslPlugin-DoZqj9KJ.mjs";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/plugins/webpack.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wesl-plugin",
3
3
  "description": "",
4
- "version": "0.6.50",
4
+ "version": "0.6.51",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "unplugin": "^2.3.5",
28
- "wesl": "0.7.0"
28
+ "wesl": "0.7.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@nuxt/kit": "^3.17.6",