vue-jsx-vapor 3.2.10 → 3.2.12
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.cjs +3 -3
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -3
- package/dist/astro.cjs +7 -8
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +3 -7
- package/dist/bun.cjs +6 -8
- package/dist/bun.d.ts +1 -1
- package/dist/bun.js +3 -7
- package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
- package/dist/{core-DWvzPUZs.cjs → core-CLUbTQ_0.cjs} +7 -9
- package/dist/{core-F-TBUTIG.js → core-DKEYkI8D.js} +1 -3
- package/dist/esbuild.cjs +6 -8
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +3 -7
- package/dist/{index-C3myqMEa.d.cts → index-BQ2Sdoa1.d.cts} +2 -2
- package/dist/index-CD9-wM0b.d.ts +7 -0
- package/dist/index.cjs +8 -7
- package/dist/index.js +2 -3
- package/dist/nuxt.cjs +8 -10
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +3 -3
- package/dist/nuxt.js +1 -6
- package/dist/raw.cjs +64 -5
- package/dist/raw.d.ts +1 -2
- package/dist/raw.js +58 -4
- package/dist/rolldown.cjs +8 -10
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +2 -6
- package/dist/rollup.cjs +6 -8
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +3 -7
- package/dist/rspack.cjs +6 -8
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -7
- package/dist/unplugin.cjs +16 -8
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +3 -3
- package/dist/unplugin.js +9 -5
- package/dist/vite.cjs +6 -8
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +3 -7
- package/dist/volar.cjs +12 -17
- package/dist/volar.d.ts +1 -1
- package/dist/volar.js +5 -13
- package/dist/webpack.cjs +6 -8
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +3 -7
- package/package.json +34 -34
- package/dist/index-Cwfse1WU.d.ts +0 -7
- package/dist/raw-BBF3dGBN.js +0 -61
- package/dist/raw-DU7L5tm7.cjs +0 -68
- package/dist/unplugin-Bq70nnn3.js +0 -12
- package/dist/unplugin-DqQPeqg7.cjs +0 -30
- /package/dist/{options-DJvDNalb.d.ts → options-DNxVVwqH.d.ts} +0 -0
package/dist/api.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.transformVueJsxVapor = require_core.transformVueJsxVapor;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_core = require("./core-CLUbTQ_0.cjs");
|
|
3
|
+
exports.transformVueJsxVapor = require_core.transformVueJsxVapor;
|
package/dist/api.d.cts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import { t as transformVueJsxVapor } from "./index-
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import { t as transformVueJsxVapor } from "./index-CD9-wM0b.js";
|
|
3
3
|
export { Options, transformVueJsxVapor };
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as transformVueJsxVapor } from "./core-
|
|
2
|
-
|
|
3
|
-
export { transformVueJsxVapor };
|
|
1
|
+
import { t as transformVueJsxVapor } from "./core-DKEYkI8D.js";
|
|
2
|
+
export { transformVueJsxVapor };
|
package/dist/astro.cjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_unplugin = require("./unplugin.cjs");
|
|
6
6
|
//#region src/astro.ts
|
|
7
7
|
var astro_default = (options) => ({
|
|
8
8
|
name: "vue-jsx-vapor",
|
|
9
9
|
hooks: { "astro:config:setup": (astro) => {
|
|
10
10
|
astro.config.vite.plugins ||= [];
|
|
11
|
-
astro.config.vite.plugins.push(require_unplugin.
|
|
11
|
+
astro.config.vite.plugins.push(require_unplugin.default.vite(options));
|
|
12
12
|
} }
|
|
13
13
|
});
|
|
14
|
-
|
|
15
14
|
//#endregion
|
|
16
|
-
exports.default = astro_default;
|
|
15
|
+
exports.default = astro_default;
|
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import { r as unplugin_default } from "./unplugin-Bq70nnn3.js";
|
|
4
|
-
|
|
1
|
+
import unplugin from "./unplugin.js";
|
|
5
2
|
//#region src/astro.ts
|
|
6
3
|
var astro_default = (options) => ({
|
|
7
4
|
name: "vue-jsx-vapor",
|
|
8
5
|
hooks: { "astro:config:setup": (astro) => {
|
|
9
6
|
astro.config.vite.plugins ||= [];
|
|
10
|
-
astro.config.vite.plugins.push(
|
|
7
|
+
astro.config.vite.plugins.push(unplugin.vite(options));
|
|
11
8
|
} }
|
|
12
9
|
});
|
|
13
|
-
|
|
14
10
|
//#endregion
|
|
15
|
-
export { astro_default as default };
|
|
11
|
+
export { astro_default as default };
|
package/dist/bun.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
6
5
|
//#region src/bun.ts
|
|
7
|
-
var bun_default =
|
|
8
|
-
|
|
6
|
+
var bun_default = require("./unplugin.cjs").default.bun;
|
|
9
7
|
//#endregion
|
|
10
|
-
exports.default = bun_default;
|
|
8
|
+
exports.default = bun_default;
|
package/dist/bun.d.ts
CHANGED
package/dist/bun.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import { r as unplugin_default } from "./unplugin-Bq70nnn3.js";
|
|
4
|
-
|
|
1
|
+
import unplugin from "./unplugin.js";
|
|
5
2
|
//#region src/bun.ts
|
|
6
|
-
var bun_default =
|
|
7
|
-
|
|
3
|
+
var bun_default = unplugin.bun;
|
|
8
4
|
//#endregion
|
|
9
|
-
export { bun_default as default };
|
|
5
|
+
export { bun_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -6,16 +6,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
19
15
|
}
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
@@ -23,12 +19,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
19
|
value: mod,
|
|
24
20
|
enumerable: true
|
|
25
21
|
}) : target, mod));
|
|
26
|
-
|
|
27
22
|
//#endregion
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
23
|
+
Object.defineProperty(exports, "__toESM", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return __toESM;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
require("./chunk-CKQMccvm.cjs");
|
|
2
2
|
let _vue_jsx_vapor_compiler_rs = require("@vue-jsx-vapor/compiler-rs");
|
|
3
|
-
|
|
4
3
|
//#region src/core/index.ts
|
|
5
4
|
function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR = false, ssr = false) {
|
|
6
5
|
return (0, _vue_jsx_vapor_compiler_rs.transform)(code, {
|
|
@@ -12,11 +11,10 @@ function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR
|
|
|
12
11
|
...options?.compiler
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
|
-
Object.defineProperty(exports,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
15
|
+
Object.defineProperty(exports, "transformVueJsxVapor", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return transformVueJsxVapor;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { transform } from "@vue-jsx-vapor/compiler-rs";
|
|
2
|
-
|
|
3
2
|
//#region src/core/index.ts
|
|
4
3
|
function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR = false, ssr = false) {
|
|
5
4
|
return transform(code, {
|
|
@@ -11,6 +10,5 @@ function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR
|
|
|
11
10
|
...options?.compiler
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
|
-
export { transformVueJsxVapor as t };
|
|
14
|
+
export { transformVueJsxVapor as t };
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
6
5
|
//#region src/esbuild.ts
|
|
7
|
-
var esbuild_default =
|
|
8
|
-
|
|
6
|
+
var esbuild_default = require("./unplugin.cjs").default.esbuild;
|
|
9
7
|
//#endregion
|
|
10
|
-
exports.default = esbuild_default;
|
|
8
|
+
exports.default = esbuild_default;
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Options } from "./options-BGVfa0WB.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.EsbuildPlugin;
|
|
6
6
|
export = _default;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.EsbuildPlugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import { r as unplugin_default } from "./unplugin-Bq70nnn3.js";
|
|
4
|
-
|
|
1
|
+
import unplugin from "./unplugin.js";
|
|
5
2
|
//#region src/esbuild.ts
|
|
6
|
-
var esbuild_default =
|
|
7
|
-
|
|
3
|
+
var esbuild_default = unplugin.esbuild;
|
|
8
4
|
//#endregion
|
|
9
|
-
export { esbuild_default as default };
|
|
5
|
+
export { esbuild_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Options } from "./options-BGVfa0WB.cjs";
|
|
2
|
-
import * as _vue_jsx_vapor_compiler_rs0 from "@vue-jsx-vapor/compiler-rs";
|
|
2
|
+
import * as _$_vue_jsx_vapor_compiler_rs0 from "@vue-jsx-vapor/compiler-rs";
|
|
3
3
|
|
|
4
4
|
//#region src/core/index.d.ts
|
|
5
|
-
declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean, needHMR?: boolean, ssr?: boolean): _vue_jsx_vapor_compiler_rs0.TransformReturn;
|
|
5
|
+
declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean, needHMR?: boolean, ssr?: boolean): _$_vue_jsx_vapor_compiler_rs0.TransformReturn;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { transformVueJsxVapor as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import * as _$_vue_jsx_vapor_compiler_rs0 from "@vue-jsx-vapor/compiler-rs";
|
|
3
|
+
|
|
4
|
+
//#region src/core/index.d.ts
|
|
5
|
+
declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean, needHMR?: boolean, ssr?: boolean): _$_vue_jsx_vapor_compiler_rs0.TransformReturn;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { transformVueJsxVapor as t };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
var _vue_jsx_vapor_runtime = require("@vue-jsx-vapor/runtime");
|
|
4
|
-
Object.keys(_vue_jsx_vapor_runtime).forEach(function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
Object.keys(_vue_jsx_vapor_runtime).forEach(function(k) {
|
|
4
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function() {
|
|
7
|
+
return _vue_jsx_vapor_runtime[k];
|
|
8
|
+
}
|
|
9
|
+
});
|
|
9
10
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "@vue-jsx-vapor/runtime"
|
|
2
|
-
|
|
3
|
-
export { };
|
|
1
|
+
export * from "@vue-jsx-vapor/runtime";
|
|
2
|
+
export {};
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require(
|
|
6
|
-
const require_vite = require(
|
|
7
|
-
const require_webpack = require(
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require("./chunk-CKQMccvm.cjs");
|
|
6
|
+
const require_vite = require("./vite.cjs");
|
|
7
|
+
const require_webpack = require("./webpack.cjs");
|
|
8
8
|
let _nuxt_kit = require("@nuxt/kit");
|
|
9
9
|
require("@nuxt/schema");
|
|
10
|
-
|
|
11
10
|
//#region src/nuxt.ts
|
|
12
11
|
var nuxt_default = (0, _nuxt_kit.defineNuxtModule)({
|
|
13
12
|
meta: {
|
|
@@ -19,6 +18,5 @@ var nuxt_default = (0, _nuxt_kit.defineNuxtModule)({
|
|
|
19
18
|
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack.default(options));
|
|
20
19
|
}
|
|
21
20
|
});
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
exports.default = nuxt_default;
|
|
22
|
+
exports.default = nuxt_default;
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Options } from "./options-BGVfa0WB.cjs";
|
|
2
|
-
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
2
|
+
import * as _$_nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
interface ModuleOptions extends Options {}
|
|
6
|
-
declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
|
+
declare const _default: _$_nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ModuleOptions, _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import * as _$_nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
interface ModuleOptions extends Options {}
|
|
6
|
-
declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
|
+
declare const _default: _$_nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ModuleOptions, _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import "./unplugin-Bq70nnn3.js";
|
|
4
1
|
import vite_default from "./vite.js";
|
|
5
2
|
import webpack_default from "./webpack.js";
|
|
6
3
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
7
4
|
import "@nuxt/schema";
|
|
8
|
-
|
|
9
5
|
//#region src/nuxt.ts
|
|
10
6
|
var nuxt_default = defineNuxtModule({
|
|
11
7
|
meta: {
|
|
@@ -17,6 +13,5 @@ var nuxt_default = defineNuxtModule({
|
|
|
17
13
|
addWebpackPlugin(() => webpack_default(options));
|
|
18
14
|
}
|
|
19
15
|
});
|
|
20
|
-
|
|
21
16
|
//#endregion
|
|
22
|
-
export { nuxt_default as default };
|
|
17
|
+
export { nuxt_default as default };
|
package/dist/raw.cjs
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
6
|
+
const require_core = require("./core-CLUbTQ_0.cjs");
|
|
7
|
+
let _vue_jsx_vapor_macros_raw = require("@vue-jsx-vapor/macros/raw");
|
|
8
|
+
_vue_jsx_vapor_macros_raw = require_chunk.__toESM(_vue_jsx_vapor_macros_raw, 1);
|
|
9
|
+
let _vue_jsx_vapor_runtime_raw = require("@vue-jsx-vapor/runtime/raw");
|
|
10
|
+
let pathe = require("pathe");
|
|
11
|
+
let unplugin_utils = require("unplugin-utils");
|
|
12
|
+
//#region src/raw.ts
|
|
13
|
+
const plugin = (options = {}) => {
|
|
14
|
+
let root = "";
|
|
15
|
+
let needHMR = false;
|
|
16
|
+
let needSourceMap = options.sourceMap || false;
|
|
17
|
+
const helperId = /^\/vue-jsx-vapor\//;
|
|
18
|
+
return [...options.macros === false ? [] : options.macros ? (0, _vue_jsx_vapor_macros_raw.default)(options.macros === true ? void 0 : options.macros) : [], {
|
|
19
|
+
enforce: "pre",
|
|
20
|
+
name: "vue-jsx-vapor",
|
|
21
|
+
vite: {
|
|
22
|
+
config(config) {
|
|
23
|
+
return { define: {
|
|
24
|
+
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
|
|
25
|
+
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
|
|
26
|
+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false
|
|
27
|
+
} };
|
|
28
|
+
},
|
|
29
|
+
configResolved(config) {
|
|
30
|
+
root = config.root;
|
|
31
|
+
needHMR = config.command === "serve";
|
|
32
|
+
needSourceMap ||= config.command === "serve" || !!config.build.sourcemap;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
resolveId: {
|
|
36
|
+
filter: { id: helperId },
|
|
37
|
+
handler: (id) => id
|
|
38
|
+
},
|
|
39
|
+
load: {
|
|
40
|
+
filter: { id: helperId },
|
|
41
|
+
handler(id) {
|
|
42
|
+
if (id === _vue_jsx_vapor_runtime_raw.ssrHelperId) return _vue_jsx_vapor_runtime_raw.ssrHelperCode;
|
|
43
|
+
if (id === _vue_jsx_vapor_runtime_raw.propsHelperId) return _vue_jsx_vapor_runtime_raw.propsHelperCode;
|
|
44
|
+
if (id === _vue_jsx_vapor_runtime_raw.vdomHelperId) return _vue_jsx_vapor_runtime_raw.vdomHelperCode;
|
|
45
|
+
if (id === _vue_jsx_vapor_runtime_raw.vaporHelperId) return _vue_jsx_vapor_runtime_raw.vaporHelperCode;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
transform: {
|
|
49
|
+
filter: { id: {
|
|
50
|
+
include: options?.include || /\.[cm]?[jt]sx(?=$|[?#])/,
|
|
51
|
+
exclude: options?.exclude || /node_modules/
|
|
52
|
+
} },
|
|
53
|
+
handler(code, id, opt) {
|
|
54
|
+
const result = require_core.transformVueJsxVapor(code, opt?.ssr ? (0, unplugin_utils.normalizePath)((0, pathe.relative)(root, id)) : id, options, needSourceMap, needHMR, opt?.ssr);
|
|
55
|
+
if (result?.code) return {
|
|
56
|
+
code: result.code,
|
|
57
|
+
map: result.map ? JSON.parse(result.map) : null
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}];
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.default = plugin;
|
package/dist/raw.d.ts
CHANGED
package/dist/raw.js
CHANGED
|
@@ -1,4 +1,58 @@
|
|
|
1
|
-
import "./core-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { t as transformVueJsxVapor } from "./core-DKEYkI8D.js";
|
|
2
|
+
import macros from "@vue-jsx-vapor/macros/raw";
|
|
3
|
+
import { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId } from "@vue-jsx-vapor/runtime/raw";
|
|
4
|
+
import { relative } from "pathe";
|
|
5
|
+
import { normalizePath } from "unplugin-utils";
|
|
6
|
+
//#region src/raw.ts
|
|
7
|
+
const plugin = (options = {}) => {
|
|
8
|
+
let root = "";
|
|
9
|
+
let needHMR = false;
|
|
10
|
+
let needSourceMap = options.sourceMap || false;
|
|
11
|
+
const helperId = /^\/vue-jsx-vapor\//;
|
|
12
|
+
return [...options.macros === false ? [] : options.macros ? macros(options.macros === true ? void 0 : options.macros) : [], {
|
|
13
|
+
enforce: "pre",
|
|
14
|
+
name: "vue-jsx-vapor",
|
|
15
|
+
vite: {
|
|
16
|
+
config(config) {
|
|
17
|
+
return { define: {
|
|
18
|
+
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
|
|
19
|
+
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
|
|
20
|
+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false
|
|
21
|
+
} };
|
|
22
|
+
},
|
|
23
|
+
configResolved(config) {
|
|
24
|
+
root = config.root;
|
|
25
|
+
needHMR = config.command === "serve";
|
|
26
|
+
needSourceMap ||= config.command === "serve" || !!config.build.sourcemap;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
resolveId: {
|
|
30
|
+
filter: { id: helperId },
|
|
31
|
+
handler: (id) => id
|
|
32
|
+
},
|
|
33
|
+
load: {
|
|
34
|
+
filter: { id: helperId },
|
|
35
|
+
handler(id) {
|
|
36
|
+
if (id === ssrHelperId) return ssrHelperCode;
|
|
37
|
+
if (id === propsHelperId) return propsHelperCode;
|
|
38
|
+
if (id === vdomHelperId) return vdomHelperCode;
|
|
39
|
+
if (id === vaporHelperId) return vaporHelperCode;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
transform: {
|
|
43
|
+
filter: { id: {
|
|
44
|
+
include: options?.include || /\.[cm]?[jt]sx(?=$|[?#])/,
|
|
45
|
+
exclude: options?.exclude || /node_modules/
|
|
46
|
+
} },
|
|
47
|
+
handler(code, id, opt) {
|
|
48
|
+
const result = transformVueJsxVapor(code, opt?.ssr ? normalizePath(relative(root, id)) : id, options, needSourceMap, needHMR, opt?.ssr);
|
|
49
|
+
if (result?.code) return {
|
|
50
|
+
code: result.code,
|
|
51
|
+
map: result.map ? JSON.parse(result.map) : null
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}];
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { plugin as default };
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require("./chunk-CKQMccvm.cjs");
|
|
6
|
+
const require_unplugin = require("./unplugin.cjs");
|
|
8
7
|
//#region src/rolldown.ts
|
|
9
|
-
var rolldown_default = (0, unplugin.createRollupPlugin)(require_unplugin.unpluginFactory);
|
|
10
|
-
|
|
8
|
+
var rolldown_default = (0, require("unplugin").createRollupPlugin)(require_unplugin.unpluginFactory);
|
|
11
9
|
//#endregion
|
|
12
|
-
exports.default = rolldown_default;
|
|
10
|
+
exports.default = rolldown_default;
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Options } from "./options-BGVfa0WB.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
|
|
6
6
|
export = _default;
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rolldown.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import { n as unpluginFactory } from "./unplugin-Bq70nnn3.js";
|
|
1
|
+
import { unpluginFactory } from "./unplugin.js";
|
|
4
2
|
import { createRollupPlugin } from "unplugin";
|
|
5
|
-
|
|
6
3
|
//#region src/rolldown.ts
|
|
7
4
|
var rolldown_default = createRollupPlugin(unpluginFactory);
|
|
8
|
-
|
|
9
5
|
//#endregion
|
|
10
|
-
export { rolldown_default as default };
|
|
6
|
+
export { rolldown_default as default };
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
6
5
|
//#region src/rollup.ts
|
|
7
|
-
var rollup_default =
|
|
8
|
-
|
|
6
|
+
var rollup_default = require("./unplugin.cjs").default.rollup;
|
|
9
7
|
//#endregion
|
|
10
|
-
exports.default = rollup_default;
|
|
8
|
+
exports.default = rollup_default;
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Options } from "./options-BGVfa0WB.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.RollupPlugin<any>[];
|
|
6
6
|
export = _default;
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Options } from "./options-DNxVVwqH.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.RollupPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./raw-BBF3dGBN.js";
|
|
3
|
-
import { r as unplugin_default } from "./unplugin-Bq70nnn3.js";
|
|
4
|
-
|
|
1
|
+
import unplugin from "./unplugin.js";
|
|
5
2
|
//#region src/rollup.ts
|
|
6
|
-
var rollup_default =
|
|
7
|
-
|
|
3
|
+
var rollup_default = unplugin.rollup;
|
|
8
4
|
//#endregion
|
|
9
|
-
export { rollup_default as default };
|
|
5
|
+
export { rollup_default as default };
|