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.
- package/dist/{WeslPlugin-DFbg7Qiu.mjs → WeslPlugin-DoZqj9KJ.mjs} +4 -2
- package/dist/plugins/astro.mjs +1 -1
- package/dist/plugins/esbuild.mjs +1 -1
- package/dist/plugins/farm.mjs +1 -1
- package/dist/plugins/nuxt.mjs +1 -1
- package/dist/plugins/rollup.mjs +1 -1
- package/dist/plugins/rspack.mjs +1 -1
- package/dist/plugins/vite.mjs +1 -1
- package/dist/plugins/webpack.mjs +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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));
|
package/dist/plugins/astro.mjs
CHANGED
package/dist/plugins/esbuild.mjs
CHANGED
package/dist/plugins/farm.mjs
CHANGED
package/dist/plugins/nuxt.mjs
CHANGED
package/dist/plugins/rollup.mjs
CHANGED
package/dist/plugins/rspack.mjs
CHANGED
package/dist/plugins/vite.mjs
CHANGED
package/dist/plugins/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wesl-plugin",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.6.
|
|
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.
|
|
28
|
+
"wesl": "0.7.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@nuxt/kit": "^3.17.6",
|