vue-jsx-vapor 2.4.1 → 2.4.2
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/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/astro.cjs +2 -3
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +2 -3
- package/dist/esbuild.cjs +2 -3
- package/dist/esbuild.d.cts +3 -3
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +2 -3
- package/dist/index.cjs +10 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -12
- package/dist/nuxt.cjs +4 -5
- package/dist/nuxt.d.cts +3 -3
- package/dist/nuxt.d.ts +3 -3
- package/dist/nuxt.js +4 -5
- package/dist/{options-BRfDD5qB.d.cts → options-Clei53Zq.d.ts} +2 -1
- package/dist/{options-CeDGvYqS.d.ts → options-DV8VvkGu.d.cts} +2 -1
- package/dist/options.d.cts +1 -1
- package/dist/options.d.ts +1 -1
- package/dist/{raw-BY1njZIx.cjs → raw-UXyMc4Bx.cjs} +1 -1
- package/dist/{raw-DecHkpC5.js → raw-xT5hUlRx.js} +1 -1
- package/dist/raw.cjs +1 -1
- package/dist/raw.d.cts +1 -1
- package/dist/raw.d.ts +1 -1
- package/dist/raw.js +1 -1
- package/dist/rolldown.cjs +2 -3
- package/dist/rolldown.d.cts +3 -3
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +2 -3
- package/dist/rollup.cjs +2 -3
- package/dist/rollup.d.cts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +2 -3
- package/dist/rspack.cjs +2 -3
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +2 -3
- package/dist/unplugin-BzCjyz75.js +12 -0
- package/dist/{unplugin-JV7CydWf.cjs → unplugin-CrQwiFff.cjs} +2 -22
- package/dist/unplugin.cjs +2 -3
- package/dist/unplugin.d.cts +3 -3
- package/dist/unplugin.d.ts +3 -3
- package/dist/unplugin.js +2 -3
- package/dist/vite-BUgmDfUA.js +7 -0
- package/dist/{vite-CVR2C-Wy.cjs → vite-BWFaZdea.cjs} +1 -1
- package/dist/vite.cjs +3 -4
- package/dist/vite.d.cts +3 -3
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +3 -4
- package/dist/volar.d.cts +1 -1
- package/dist/volar.d.ts +1 -1
- package/dist/{webpack-mKQ7x4tg.js → webpack-BrJvWfwB.js} +1 -1
- package/dist/{webpack-DWlp7dxs.cjs → webpack-CkQ8I3Hu.cjs} +1 -1
- package/dist/webpack.cjs +3 -4
- package/dist/webpack.d.cts +3 -3
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -4
- package/package.json +5 -5
- package/dist/options-HYvLzmlg.js +0 -0
- package/dist/options.cjs +0 -1
- package/dist/options.js +0 -1
- package/dist/unplugin-DeYNxSzL.js +0 -32
- package/dist/vite-C2WptbyG.js +0 -7
- /package/dist/{options-CulFO0WS.cjs → options.d.cjs} +0 -0
package/dist/api.d.cts
CHANGED
package/dist/api.d.ts
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/astro.ts
|
|
8
7
|
var astro_default = (options) => ({
|
package/dist/astro.d.cts
CHANGED
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unplugin_default } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unplugin_default } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
|
|
6
5
|
//#region src/astro.ts
|
|
7
6
|
var astro_default = (options) => ({
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/esbuild.ts
|
|
8
7
|
var esbuild_default = require_unplugin.unplugin_default.esbuild;
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as esbuild1 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => esbuild1.Plugin;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as esbuild4 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => esbuild4.Plugin;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unplugin_default } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unplugin_default } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
|
|
6
5
|
//#region src/esbuild.ts
|
|
7
6
|
var esbuild_default = unplugin_default.esbuild;
|
package/dist/index.cjs
CHANGED
|
@@ -62,20 +62,20 @@ function normalizeNode(node, anchor) {
|
|
|
62
62
|
} else return document.createTextNode(result);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function resolveValue(current, value,
|
|
66
|
-
const node = normalizeNode(value,
|
|
65
|
+
function resolveValue(current, value, _anchor) {
|
|
66
|
+
const node = normalizeNode(value, _anchor);
|
|
67
67
|
if (current) {
|
|
68
68
|
if ((0, vue.isFragment)(current)) {
|
|
69
|
-
const { anchor
|
|
70
|
-
if (anchor
|
|
71
|
-
(0, vue.remove)(current.nodes, anchor
|
|
72
|
-
(0, vue.insert)(node, anchor
|
|
73
|
-
anchor
|
|
69
|
+
const { anchor } = current;
|
|
70
|
+
if (anchor && anchor.parentNode) {
|
|
71
|
+
(0, vue.remove)(current.nodes, anchor.parentNode);
|
|
72
|
+
(0, vue.insert)(node, anchor.parentNode, anchor);
|
|
73
|
+
!_anchor && anchor.parentNode.removeChild(anchor);
|
|
74
74
|
}
|
|
75
75
|
} else if (current instanceof Node) {
|
|
76
76
|
if ((0, vue.isFragment)(node) && current.parentNode) {
|
|
77
77
|
(0, vue.insert)(node, current.parentNode, current);
|
|
78
|
-
current.
|
|
78
|
+
current.parentNode.removeChild(current);
|
|
79
79
|
} else if (node instanceof Node) {
|
|
80
80
|
if (current.nodeType === 3 && node.nodeType === 3) {
|
|
81
81
|
current.textContent = node.textContent;
|
|
@@ -88,19 +88,18 @@ function resolveValue(current, value, anchor) {
|
|
|
88
88
|
}
|
|
89
89
|
function resolveValues(values = [], _anchor) {
|
|
90
90
|
const nodes = [];
|
|
91
|
+
const frag = createFragment(nodes, _anchor);
|
|
91
92
|
const scopes = [];
|
|
92
93
|
for (const [index, value] of values.entries()) {
|
|
93
94
|
const anchor = index === values.length - 1 ? _anchor : void 0;
|
|
94
95
|
if (typeof value === "function") (0, vue.renderEffect)(() => {
|
|
95
|
-
(0, vue.pauseTracking)();
|
|
96
96
|
if (scopes[index]) scopes[index].stop();
|
|
97
97
|
scopes[index] = new vue.EffectScope();
|
|
98
98
|
nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
|
|
99
|
-
(0, vue.resetTracking)();
|
|
100
99
|
});
|
|
101
100
|
else nodes[index] = resolveValue(nodes[index], value, anchor);
|
|
102
101
|
}
|
|
103
|
-
return
|
|
102
|
+
return frag;
|
|
104
103
|
}
|
|
105
104
|
function setNodes(anchor, ...values) {
|
|
106
105
|
const resolvedValues = resolveValues(values, anchor);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/core/runtime.d.ts
|
|
5
5
|
declare function getCurrentInstance(): GenericComponentInstance | null;
|
|
@@ -33,8 +33,8 @@ declare function useProps(): {
|
|
|
33
33
|
declare function useFullProps(): Vue.ShallowUnwrapRef<{
|
|
34
34
|
[x: string]: Vue.Ref<unknown, unknown>;
|
|
35
35
|
}>;
|
|
36
|
-
declare function setNodes(anchor:
|
|
37
|
-
declare function createNodes(...values: any[]):
|
|
36
|
+
declare function setNodes(anchor: Node, ...values: any[]): void;
|
|
37
|
+
declare function createNodes(...values: any[]): VaporFragment;
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/core/runtime.d.ts
|
|
5
5
|
declare function getCurrentInstance(): GenericComponentInstance | null;
|
|
@@ -33,8 +33,8 @@ declare function useProps(): {
|
|
|
33
33
|
declare function useFullProps(): Vue.ShallowUnwrapRef<{
|
|
34
34
|
[x: string]: Vue.Ref<unknown, unknown>;
|
|
35
35
|
}>;
|
|
36
|
-
declare function setNodes(anchor:
|
|
37
|
-
declare function createNodes(...values: any[]):
|
|
36
|
+
declare function setNodes(anchor: Node, ...values: any[]): void;
|
|
37
|
+
declare function createNodes(...values: any[]): VaporFragment;
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
|
-
import { EffectScope, VaporFragment, insert, isFragment, isVaporComponent,
|
|
2
|
+
import { EffectScope, VaporFragment, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/core/runtime.ts
|
|
5
5
|
function getCurrentInstance() {
|
|
@@ -62,20 +62,20 @@ function normalizeNode(node, anchor) {
|
|
|
62
62
|
} else return document.createTextNode(result);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function resolveValue(current, value,
|
|
66
|
-
const node = normalizeNode(value,
|
|
65
|
+
function resolveValue(current, value, _anchor) {
|
|
66
|
+
const node = normalizeNode(value, _anchor);
|
|
67
67
|
if (current) {
|
|
68
68
|
if (isFragment(current)) {
|
|
69
|
-
const { anchor
|
|
70
|
-
if (anchor
|
|
71
|
-
remove(current.nodes, anchor
|
|
72
|
-
insert(node, anchor
|
|
73
|
-
anchor
|
|
69
|
+
const { anchor } = current;
|
|
70
|
+
if (anchor && anchor.parentNode) {
|
|
71
|
+
remove(current.nodes, anchor.parentNode);
|
|
72
|
+
insert(node, anchor.parentNode, anchor);
|
|
73
|
+
!_anchor && anchor.parentNode.removeChild(anchor);
|
|
74
74
|
}
|
|
75
75
|
} else if (current instanceof Node) {
|
|
76
76
|
if (isFragment(node) && current.parentNode) {
|
|
77
77
|
insert(node, current.parentNode, current);
|
|
78
|
-
current.
|
|
78
|
+
current.parentNode.removeChild(current);
|
|
79
79
|
} else if (node instanceof Node) {
|
|
80
80
|
if (current.nodeType === 3 && node.nodeType === 3) {
|
|
81
81
|
current.textContent = node.textContent;
|
|
@@ -88,19 +88,18 @@ function resolveValue(current, value, anchor) {
|
|
|
88
88
|
}
|
|
89
89
|
function resolveValues(values = [], _anchor) {
|
|
90
90
|
const nodes = [];
|
|
91
|
+
const frag = createFragment(nodes, _anchor);
|
|
91
92
|
const scopes = [];
|
|
92
93
|
for (const [index, value] of values.entries()) {
|
|
93
94
|
const anchor = index === values.length - 1 ? _anchor : void 0;
|
|
94
95
|
if (typeof value === "function") renderEffect(() => {
|
|
95
|
-
pauseTracking();
|
|
96
96
|
if (scopes[index]) scopes[index].stop();
|
|
97
97
|
scopes[index] = new EffectScope();
|
|
98
98
|
nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
|
|
99
|
-
resetTracking();
|
|
100
99
|
});
|
|
101
100
|
else nodes[index] = resolveValue(nodes[index], value, anchor);
|
|
102
101
|
}
|
|
103
|
-
return
|
|
102
|
+
return frag;
|
|
104
103
|
}
|
|
105
104
|
function setNodes(anchor, ...values) {
|
|
106
105
|
const resolvedValues = resolveValues(values, anchor);
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
3
3
|
require('./core-BEqRwfoK.cjs');
|
|
4
|
-
require('./raw-
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
7
|
-
const
|
|
8
|
-
const require_webpack = require('./webpack-DWlp7dxs.cjs');
|
|
4
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
5
|
+
require('./unplugin-CrQwiFff.cjs');
|
|
6
|
+
const require_vite = require('./vite-BWFaZdea.cjs');
|
|
7
|
+
const require_webpack = require('./webpack-CkQ8I3Hu.cjs');
|
|
9
8
|
const __nuxt_kit = require_chunk.__toESM(require("@nuxt/kit"));
|
|
10
9
|
require("@nuxt/schema");
|
|
11
10
|
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as _nuxt_schema4 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
interface ModuleOptions extends Options {}
|
|
6
|
-
declare const _default:
|
|
6
|
+
declare const _default: _nuxt_schema4.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ModuleOptions, _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as _nuxt_schema8 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
interface ModuleOptions extends Options {}
|
|
6
|
-
declare const _default:
|
|
6
|
+
declare const _default: _nuxt_schema8.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ModuleOptions, _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import { webpack_default } from "./webpack-mKQ7x4tg.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import "./unplugin-BzCjyz75.js";
|
|
4
|
+
import { vite_default } from "./vite-BUgmDfUA.js";
|
|
5
|
+
import { webpack_default } from "./webpack-BrJvWfwB.js";
|
|
7
6
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
8
7
|
import "@nuxt/schema";
|
|
9
8
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { FilterPattern } from "unplugin-utils";
|
|
1
2
|
import { CompilerOptions } from "@vue-jsx-vapor/compiler";
|
|
2
3
|
import { Options } from "@vue-jsx-vapor/macros";
|
|
3
|
-
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/options.d.ts
|
|
6
6
|
interface Options$1 {
|
|
7
|
+
// define your plugin options here
|
|
7
8
|
include?: FilterPattern;
|
|
8
9
|
exclude?: FilterPattern;
|
|
9
10
|
interop?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FilterPattern } from "unplugin-utils";
|
|
2
1
|
import { CompilerOptions } from "@vue-jsx-vapor/compiler";
|
|
3
2
|
import { Options } from "@vue-jsx-vapor/macros";
|
|
3
|
+
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/options.d.ts
|
|
6
6
|
interface Options$1 {
|
|
7
|
+
// define your plugin options here
|
|
7
8
|
include?: FilterPattern;
|
|
8
9
|
exclude?: FilterPattern;
|
|
9
10
|
interop?: boolean;
|
package/dist/options.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
2
|
export { Options };
|
package/dist/options.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
2
|
export { Options };
|
|
@@ -112,7 +112,7 @@ function isDefineComponentCall(node, names) {
|
|
|
112
112
|
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/core/runtime.ts?raw
|
|
115
|
-
var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n
|
|
115
|
+
var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
|
|
116
116
|
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/core/vue-jsx.ts
|
|
@@ -111,7 +111,7 @@ function isDefineComponentCall(node, names) {
|
|
|
111
111
|
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/core/runtime.ts?raw
|
|
114
|
-
var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n
|
|
114
|
+
var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
|
|
115
115
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/core/vue-jsx.ts
|
package/dist/raw.cjs
CHANGED
package/dist/raw.d.cts
CHANGED
package/dist/raw.d.ts
CHANGED
package/dist/raw.js
CHANGED
package/dist/rolldown.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
3
3
|
require('./core-BEqRwfoK.cjs');
|
|
4
|
-
require('./raw-
|
|
5
|
-
require('./
|
|
6
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
4
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
5
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
7
6
|
const unplugin = require_chunk.__toESM(require("unplugin"));
|
|
8
7
|
|
|
9
8
|
//#region src/rolldown.ts
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as rollup6 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => rollup6.Plugin<any> | rollup6.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as rollup1 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/rolldown.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unpluginFactory } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unpluginFactory } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
import { createRollupPlugin } from "unplugin";
|
|
6
5
|
|
|
7
6
|
//#region src/rolldown.ts
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/rollup.ts
|
|
8
7
|
var rollup_default = require_unplugin.unplugin_default.rollup;
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as rollup3 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => rollup3.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as rollup6 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => rollup6.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unplugin_default } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unplugin_default } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
|
|
6
5
|
//#region src/rollup.ts
|
|
7
6
|
var rollup_default = unplugin_default.rollup;
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/rspack.ts
|
|
8
7
|
var rspack_default = require_unplugin.unplugin_default.rspack;
|
package/dist/rspack.d.cts
CHANGED
package/dist/rspack.d.ts
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unplugin_default } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unplugin_default } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
|
|
6
5
|
//#region src/rspack.ts
|
|
7
6
|
var rspack_default = unplugin_default.rspack;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { raw_default } from "./raw-xT5hUlRx.js";
|
|
2
|
+
import { createUnplugin } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/unplugin.ts
|
|
5
|
+
const unpluginFactory = (options = {}) => {
|
|
6
|
+
return raw_default(options);
|
|
7
|
+
};
|
|
8
|
+
const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
|
|
9
|
+
var unplugin_default = unplugin;
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { unplugin, unpluginFactory, unplugin_default };
|
|
@@ -1,30 +1,10 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_raw = require('./raw-
|
|
2
|
+
const require_raw = require('./raw-UXyMc4Bx.cjs');
|
|
3
3
|
const unplugin = require_chunk.__toESM(require("unplugin"));
|
|
4
|
-
const vite = require_chunk.__toESM(require("vite"));
|
|
5
4
|
|
|
6
5
|
//#region src/unplugin.ts
|
|
7
6
|
const unpluginFactory = (options = {}) => {
|
|
8
|
-
return
|
|
9
|
-
name: "unplugin-esbuild",
|
|
10
|
-
transformInclude: (0, vite.createFilter)(options?.include || /\.[jt]sx$/, options?.exclude),
|
|
11
|
-
transform(code, id) {
|
|
12
|
-
return (0, vite.transformWithEsbuild)(code, id, {
|
|
13
|
-
target: "esnext",
|
|
14
|
-
charset: "utf8",
|
|
15
|
-
minify: false,
|
|
16
|
-
minifyIdentifiers: false,
|
|
17
|
-
minifySyntax: false,
|
|
18
|
-
minifyWhitespace: false,
|
|
19
|
-
treeShaking: false,
|
|
20
|
-
keepNames: false,
|
|
21
|
-
supported: {
|
|
22
|
-
"dynamic-import": true,
|
|
23
|
-
"import-meta": true
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}];
|
|
7
|
+
return require_raw.raw_default(options);
|
|
28
8
|
};
|
|
29
9
|
const unplugin$1 = /* @__PURE__ */ (0, unplugin.createUnplugin)(unpluginFactory);
|
|
30
10
|
var unplugin_default = unplugin$1;
|
package/dist/unplugin.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
const require_unplugin = require('./unplugin-JV7CydWf.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
const require_unplugin = require('./unplugin-CrQwiFff.cjs');
|
|
6
5
|
|
|
7
6
|
exports.default = require_unplugin.unplugin_default;
|
|
8
7
|
exports.unplugin = require_unplugin.unplugin;
|
package/dist/unplugin.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as unplugin13 from "unplugin";
|
|
3
3
|
import { UnpluginFactory } from "unplugin";
|
|
4
4
|
|
|
5
5
|
//#region src/unplugin.d.ts
|
|
6
6
|
declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
|
|
7
|
-
declare const unplugin:
|
|
7
|
+
declare const unplugin: unplugin13.UnpluginInstance<Options | undefined, true>;
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Options, unplugin as default, unplugin, unpluginFactory };
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as unplugin9 from "unplugin";
|
|
3
3
|
import { UnpluginFactory } from "unplugin";
|
|
4
4
|
|
|
5
5
|
//#region src/unplugin.d.ts
|
|
6
6
|
declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
|
|
7
|
-
declare const unplugin:
|
|
7
|
+
declare const unplugin: unplugin9.UnpluginInstance<Options | undefined, true>;
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Options, unplugin as default, unplugin, unpluginFactory };
|
package/dist/unplugin.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-DeYNxSzL.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-BzCjyz75.js";
|
|
5
4
|
|
|
6
5
|
export { unplugin_default as default, unplugin, unpluginFactory };
|
package/dist/vite.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
const require_vite = require('./vite-CVR2C-Wy.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
require('./unplugin-CrQwiFff.cjs');
|
|
5
|
+
const require_vite = require('./vite-BWFaZdea.cjs');
|
|
7
6
|
|
|
8
7
|
exports.default = require_vite.vite_default;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as vite9 from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => vite9.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-Clei53Zq.js";
|
|
2
|
+
import * as vite11 from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => vite11.Plugin<any>[];
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/vite.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import { vite_default } from "./vite-C2WptbyG.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import "./unplugin-BzCjyz75.js";
|
|
4
|
+
import { vite_default } from "./vite-BUgmDfUA.js";
|
|
6
5
|
|
|
7
6
|
export { vite_default as default };
|
package/dist/volar.d.cts
CHANGED
package/dist/volar.d.ts
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
require('./core-BEqRwfoK.cjs');
|
|
3
|
-
require('./raw-
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
const require_webpack = require('./webpack-DWlp7dxs.cjs');
|
|
3
|
+
require('./raw-UXyMc4Bx.cjs');
|
|
4
|
+
require('./unplugin-CrQwiFff.cjs');
|
|
5
|
+
const require_webpack = require('./webpack-CkQ8I3Hu.cjs');
|
|
7
6
|
|
|
8
7
|
exports.default = require_webpack.webpack_default;
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options-DV8VvkGu.cjs";
|
|
2
|
+
import * as webpack12 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => webpack12.WebpackPluginInstance;
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
package/dist/webpack.d.ts
CHANGED
package/dist/webpack.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./core-BDE4GLH8.js";
|
|
2
|
-
import "./raw-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import { webpack_default } from "./webpack-mKQ7x4tg.js";
|
|
2
|
+
import "./raw-xT5hUlRx.js";
|
|
3
|
+
import "./unplugin-BzCjyz75.js";
|
|
4
|
+
import { webpack_default } from "./webpack-BrJvWfwB.js";
|
|
6
5
|
|
|
7
6
|
export { webpack_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-jsx-vapor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Convert Vue JSX to Vapor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
"dependencies": {
|
|
155
155
|
"@babel/core": "^7.26.8",
|
|
156
156
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
157
|
-
"@types/hash-sum": "^1.0.2",
|
|
158
157
|
"@vue-macros/jsx-directive": "^3.0.0-beta.12",
|
|
159
158
|
"@vue-macros/volar": "^3.0.0-beta.12",
|
|
160
159
|
"@vue/babel-plugin-jsx": "^1.4.0",
|
|
@@ -163,14 +162,15 @@
|
|
|
163
162
|
"ts-macro": "^0.1.29",
|
|
164
163
|
"unplugin": "^2.2.2",
|
|
165
164
|
"unplugin-utils": "^0.2.4",
|
|
166
|
-
"@vue-jsx-vapor/compiler": "2.4.
|
|
167
|
-
"@vue-jsx-vapor/macros": "2.4.
|
|
168
|
-
"@vue-jsx-vapor/babel": "2.4.
|
|
165
|
+
"@vue-jsx-vapor/compiler": "2.4.2",
|
|
166
|
+
"@vue-jsx-vapor/macros": "2.4.2",
|
|
167
|
+
"@vue-jsx-vapor/babel": "2.4.2"
|
|
169
168
|
},
|
|
170
169
|
"devDependencies": {
|
|
171
170
|
"@nuxt/kit": "^3.16.0",
|
|
172
171
|
"@nuxt/schema": "^3.16.0",
|
|
173
172
|
"@types/babel__core": "^7.20.5",
|
|
173
|
+
"@types/hash-sum": "^1.0.2",
|
|
174
174
|
"csstype": "^3.1.3",
|
|
175
175
|
"vue": "https://pkg.pr.new/vue@46e707d"
|
|
176
176
|
},
|
package/dist/options-HYvLzmlg.js
DELETED
|
File without changes
|
package/dist/options.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('./options-CulFO0WS.cjs');
|
package/dist/options.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./options-HYvLzmlg.js";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { raw_default } from "./raw-DecHkpC5.js";
|
|
2
|
-
import { createUnplugin } from "unplugin";
|
|
3
|
-
import { createFilter, transformWithEsbuild } from "vite";
|
|
4
|
-
|
|
5
|
-
//#region src/unplugin.ts
|
|
6
|
-
const unpluginFactory = (options = {}) => {
|
|
7
|
-
return [...raw_default(options), options.interop ? { name: "interop" } : {
|
|
8
|
-
name: "unplugin-esbuild",
|
|
9
|
-
transformInclude: createFilter(options?.include || /\.[jt]sx$/, options?.exclude),
|
|
10
|
-
transform(code, id) {
|
|
11
|
-
return transformWithEsbuild(code, id, {
|
|
12
|
-
target: "esnext",
|
|
13
|
-
charset: "utf8",
|
|
14
|
-
minify: false,
|
|
15
|
-
minifyIdentifiers: false,
|
|
16
|
-
minifySyntax: false,
|
|
17
|
-
minifyWhitespace: false,
|
|
18
|
-
treeShaking: false,
|
|
19
|
-
keepNames: false,
|
|
20
|
-
supported: {
|
|
21
|
-
"dynamic-import": true,
|
|
22
|
-
"import-meta": true
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}];
|
|
27
|
-
};
|
|
28
|
-
const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
|
|
29
|
-
var unplugin_default = unplugin;
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { unplugin, unpluginFactory, unplugin_default };
|
package/dist/vite-C2WptbyG.js
DELETED
|
File without changes
|