wesl-plugin 0.6.63 → 0.6.65
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-DoZqj9KJ.mjs → WeslPlugin-CXZB9o3p.mjs} +1 -1
- package/dist/plugins/astro.mjs +1 -1
- package/dist/plugins/esbuild.d.mts +2 -2
- 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
- package/src/PluginApi.ts +1 -1
|
@@ -9855,7 +9855,7 @@ async function getRegistry(context, unpluginCtx) {
|
|
|
9855
9855
|
async function findDependencies(context, unpluginCtx) {
|
|
9856
9856
|
const { toml: toml$1, tomlDir: projectDir } = await getWeslToml(context, unpluginCtx);
|
|
9857
9857
|
const weslSrc = await loadWesl(context, unpluginCtx);
|
|
9858
|
-
const { dependencies =
|
|
9858
|
+
const { dependencies = "auto" } = toml$1;
|
|
9859
9859
|
const depsArray = Array.isArray(dependencies) ? dependencies : [dependencies];
|
|
9860
9860
|
if (!depsArray.includes("auto")) return depsArray;
|
|
9861
9861
|
const base = depsArray.filter((dep) => dep !== "auto");
|
package/dist/plugins/astro.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../PluginExtension-N4JBtncl.mjs";
|
|
2
2
|
import { t as WeslPluginOptions } from "../WeslPluginOptions-DHLy1_Dm.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as unplugin0 from "unplugin";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/esbuild.d.ts
|
|
6
|
-
declare const _default: (options: WeslPluginOptions) =>
|
|
6
|
+
declare const _default: (options: WeslPluginOptions) => unplugin0.EsbuildPlugin;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
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.65",
|
|
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.16"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@nuxt/kit": "^3.17.6",
|
package/src/PluginApi.ts
CHANGED
|
@@ -81,7 +81,7 @@ async function findDependencies(
|
|
|
81
81
|
): Promise<string[]> {
|
|
82
82
|
const { toml, tomlDir: projectDir } = await getWeslToml(context, unpluginCtx);
|
|
83
83
|
const weslSrc = await loadWesl(context, unpluginCtx);
|
|
84
|
-
const { dependencies =
|
|
84
|
+
const { dependencies = "auto" } = toml;
|
|
85
85
|
const depsArray = Array.isArray(dependencies) ? dependencies : [dependencies];
|
|
86
86
|
if (!depsArray.includes("auto")) return depsArray;
|
|
87
87
|
|