@vue-jsx-vapor/macros 2.6.6 → 2.6.8
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/esbuild.d.ts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/volar.cjs +3 -2
- package/dist/volar.js +3 -2
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/package.json +1 -1
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as esbuild2 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) => esbuild2.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _nuxt_schema6 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_schema6.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ModuleOptions, _default as default };
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-Egmm6BVJ.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as unplugin5 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) => unplugin5.RolldownPlugin<any> | unplugin5.RolldownPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as unplugin4 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) => unplugin4.RolldownPlugin<any> | unplugin4.RolldownPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-Egmm6BVJ.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as rollup8 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) => rollup8.Plugin<any> | rollup8.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as rollup8 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) => rollup8.Plugin<any> | rollup8.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-Egmm6BVJ.cjs";
|
|
2
|
-
import * as
|
|
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> | vite11.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vite13 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) => vite13.Plugin<any> | vite13.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/volar.cjs
CHANGED
|
@@ -126,11 +126,12 @@ function transformJsxMacros(rootMap, options) {
|
|
|
126
126
|
});
|
|
127
127
|
props.push(`${element.name.escapedText}${isRequired ? ":" : "?:"} typeof ${element.name.escapedText}`);
|
|
128
128
|
}
|
|
129
|
+
const isDefineComponent = macros.defineComponent?.expression.getText(ast) === "defineComponent";
|
|
129
130
|
codes.replaceRange(node.getStart(ast), node.expression.getStart(ast), "const ", [
|
|
130
131
|
`__render`,
|
|
131
132
|
node.getStart(ast) - 1,
|
|
132
133
|
{ verification: true }
|
|
133
|
-
],
|
|
134
|
+
], isDefineComponent ? ": () => JSX.Element" : "", " = ");
|
|
134
135
|
codes.replaceRange(node.expression.end, node.expression.end, `
|
|
135
136
|
return {} as {
|
|
136
137
|
props: {${props.join(", ")}},
|
|
@@ -139,7 +140,7 @@ return {} as {
|
|
|
139
140
|
expose: (exposed: ${macros.defineExpose ?? "Record<string, any>"}) => void,
|
|
140
141
|
attrs: Record<string, any>
|
|
141
142
|
},
|
|
142
|
-
render: typeof __render
|
|
143
|
+
render: ${isDefineComponent ? `ReturnType<` : ""}typeof __render${isDefineComponent ? ">" : ""}
|
|
143
144
|
}`);
|
|
144
145
|
}
|
|
145
146
|
});
|
package/dist/volar.js
CHANGED
|
@@ -124,11 +124,12 @@ function transformJsxMacros(rootMap, options) {
|
|
|
124
124
|
});
|
|
125
125
|
props.push(`${element.name.escapedText}${isRequired ? ":" : "?:"} typeof ${element.name.escapedText}`);
|
|
126
126
|
}
|
|
127
|
+
const isDefineComponent = macros.defineComponent?.expression.getText(ast) === "defineComponent";
|
|
127
128
|
codes.replaceRange(node.getStart(ast), node.expression.getStart(ast), "const ", [
|
|
128
129
|
`__render`,
|
|
129
130
|
node.getStart(ast) - 1,
|
|
130
131
|
{ verification: true }
|
|
131
|
-
],
|
|
132
|
+
], isDefineComponent ? ": () => JSX.Element" : "", " = ");
|
|
132
133
|
codes.replaceRange(node.expression.end, node.expression.end, `
|
|
133
134
|
return {} as {
|
|
134
135
|
props: {${props.join(", ")}},
|
|
@@ -137,7 +138,7 @@ return {} as {
|
|
|
137
138
|
expose: (exposed: ${macros.defineExpose ?? "Record<string, any>"}) => void,
|
|
138
139
|
attrs: Record<string, any>
|
|
139
140
|
},
|
|
140
|
-
render: typeof __render
|
|
141
|
+
render: ${isDefineComponent ? `ReturnType<` : ""}typeof __render${isDefineComponent ? ">" : ""}
|
|
141
142
|
}`);
|
|
142
143
|
}
|
|
143
144
|
});
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-Egmm6BVJ.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as webpack14 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) => webpack14.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from "./options-K4yleEdU.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as webpack11 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) => webpack11.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|