@vizejs/vite-plugin 0.458.0 → 0.467.0
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/index.mjs +2 -2
- package/dist/plugin-Cmv6xcTJ.mjs +2 -0
- package/dist/{plugin-CRj6e2CE.mjs → plugin-CsZ0RKny.mjs} +4 -3
- package/dist/{shared-config-BU0TeQKs.mjs → shared-config-DZHugBg2.mjs} +3 -1
- package/dist/vite-plus.mjs +2 -2
- package/package.json +4 -4
- package/dist/plugin-BpoAZQ46.mjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as vize } from "./plugin-
|
|
2
|
-
import { u as rewriteStaticAssetUrls } from "./shared-config-
|
|
1
|
+
import { t as vize } from "./plugin-CsZ0RKny.mjs";
|
|
2
|
+
import { u as rewriteStaticAssetUrls } from "./shared-config-DZHugBg2.mjs";
|
|
3
3
|
import { a as resolveViteConfigExport, i as resolveConfigExport, n as defineConfig, o as vizeConfigStore, r as loadConfig, t as VIZE_CONFIG_FILE_ENV } from "./config-DNse8RdN.mjs";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
const __internal = { rewriteStaticAssetUrls };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isLegacyVueVersion, c as rewriteDynamicTemplateImports, d as shouldApplyDefineInVirtualModule, i as isLegacyVueCompatibilityMode, l as rewriteImportMetaGlobBase, n as resolveSharedConfig, o as applyDefineReplacements, r as createLegacyVueCompatibilityPlugin, s as createLogger, u as rewriteStaticAssetUrls } from "./shared-config-
|
|
1
|
+
import { a as isLegacyVueVersion, c as rewriteDynamicTemplateImports, d as shouldApplyDefineInVirtualModule, i as isLegacyVueCompatibilityMode, l as rewriteImportMetaGlobBase, n as resolveSharedConfig, o as applyDefineReplacements, r as createLegacyVueCompatibilityPlugin, s as createLogger, u as rewriteStaticAssetUrls } from "./shared-config-DZHugBg2.mjs";
|
|
2
2
|
import { o as vizeConfigStore } from "./config-DNse8RdN.mjs";
|
|
3
3
|
import { n as registerResolvedVizeConfig, r as unregisterResolvedVizeConfig } from "./config-bridge-Dv6U7_RC.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -2473,8 +2473,9 @@ async function resolveIdHook(ctx, state, id, importer, options) {
|
|
|
2473
2473
|
const projectVueRuntime = await resolveProjectVueRuntime(ctx, state, id, importer, isSsrRequest);
|
|
2474
2474
|
if (projectVueRuntime) return projectVueRuntime;
|
|
2475
2475
|
if (pluginVisibleVirtualPath) {
|
|
2476
|
-
|
|
2477
|
-
|
|
2476
|
+
const resolvedPath = resolveVuePath(state, pluginVisibleVirtualPath, importer);
|
|
2477
|
+
if (isDependencyScan) return resolvedPath;
|
|
2478
|
+
return isSsrRequest ? toPluginVisibleVirtualId(resolvedPath, true, request.querySuffix) : `${resolvedPath}${request.querySuffix}`;
|
|
2478
2479
|
}
|
|
2479
2480
|
if (id.startsWith("\0")) {
|
|
2480
2481
|
if (request.isVizeVirtual) {
|
|
@@ -78,7 +78,9 @@ const hostVueFields = new Set([
|
|
|
78
78
|
"isProduction",
|
|
79
79
|
"template",
|
|
80
80
|
"script",
|
|
81
|
-
"features"
|
|
81
|
+
"features",
|
|
82
|
+
"include",
|
|
83
|
+
"exclude"
|
|
82
84
|
]);
|
|
83
85
|
function nativeProjectSource(source, hostContext) {
|
|
84
86
|
if (hostContext !== "nuxt" || source === null || typeof source !== "object" || Array.isArray(source)) return source;
|
package/dist/vite-plus.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isLegacyVueCompatibilityMode, t as mergeSharedConfig } from "./shared-config-
|
|
1
|
+
import { i as isLegacyVueCompatibilityMode, t as mergeSharedConfig } from "./shared-config-DZHugBg2.mjs";
|
|
2
2
|
import { c as projectViteConfigSource, i as resolveConfigExport, l as vueConfigOptions, r as loadConfig, s as mergeVueConfigOptions } from "./config-DNse8RdN.mjs";
|
|
3
3
|
import { a as sourceConfigKey, i as resolveVitePlus, o as taskConfigKey, r as availableVueRules, t as runNative } from "./runner-Y2Iuaafy.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -368,7 +368,7 @@ function defineConfig(config = {}, integration = {}) {
|
|
|
368
368
|
const { options } = metadata;
|
|
369
369
|
const plugins = compiler === false || isLegacyVueCompatibilityMode(compiler) ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
|
|
370
370
|
if (compiler !== false) {
|
|
371
|
-
const { vize } = await import("./plugin-
|
|
371
|
+
const { vize } = await import("./plugin-Cmv6xcTJ.mjs");
|
|
372
372
|
plugins.push(vize({
|
|
373
373
|
...compiler,
|
|
374
374
|
configMode: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.467.0",
|
|
4
4
|
"description": "High-performance native Vite plugin for Vue SFC compilation powered by Vize",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vizejs/native": "0.
|
|
55
|
-
"@vizejs/unplugin": "0.
|
|
54
|
+
"@vizejs/native": "0.467.0",
|
|
55
|
+
"@vizejs/unplugin": "0.467.0",
|
|
56
56
|
"jsonc-parser": "^3.3.1",
|
|
57
57
|
"oxc-parser": "0.144.0",
|
|
58
58
|
"picomatch": "4.0.5",
|
|
59
59
|
"tinyglobby": "0.2.17",
|
|
60
|
-
"vize": "0.
|
|
60
|
+
"vize": "0.467.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "25.9.2",
|
package/dist/plugin-BpoAZQ46.mjs
DELETED