@vue-jsx-vapor/macros 3.2.12 → 3.2.14
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 +4 -3
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +3 -2
- package/dist/astro.cjs +7 -6
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +5 -1
- package/dist/bun.cjs +8 -6
- package/dist/bun.d.cts +1 -1
- package/dist/bun.d.ts +1 -1
- package/dist/bun.js +5 -1
- package/dist/{core-j6kwFyf2.cjs → core-D-SjmK2V.cjs} +98 -76
- package/dist/{core-CspOqTxm.js → core-DN_L2oPP.js} +25 -8
- package/dist/esbuild.cjs +8 -6
- package/dist/esbuild.d.cts +3 -3
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +5 -1
- package/dist/index.cjs +10 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.d.cts +3 -3
- package/dist/nuxt.d.ts +3 -3
- package/dist/nuxt.js +6 -2
- package/dist/options.cjs +4 -2
- package/dist/options.d.cts +41 -1
- package/dist/options.d.ts +41 -1
- package/dist/options.js +2 -1
- package/dist/raw.cjs +71 -6
- package/dist/raw.d.cts +1 -1
- package/dist/raw.d.ts +1 -1
- package/dist/raw.js +70 -2
- package/dist/rolldown.cjs +8 -6
- package/dist/rolldown.d.cts +3 -3
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +5 -1
- package/dist/rollup.cjs +8 -6
- package/dist/rollup.d.cts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +5 -1
- package/dist/rsbuild.cjs +17 -0
- package/dist/rsbuild.d.cts +8 -0
- package/dist/rsbuild.d.ts +9 -0
- package/dist/rsbuild.js +16 -0
- package/dist/rspack.cjs +8 -6
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +5 -1
- package/dist/style-CYbYjV0s.cjs +34 -0
- package/dist/style-T_SCIOuW.js +29 -0
- package/dist/vite.cjs +8 -6
- package/dist/vite.d.cts +3 -3
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +5 -1
- package/dist/volar.cjs +12 -7
- package/dist/volar.d.cts +1 -1
- package/dist/volar.d.ts +1 -1
- package/dist/volar.js +9 -1
- package/dist/webpack.cjs +8 -6
- package/dist/webpack.d.cts +3 -3
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +5 -1
- package/package.json +8 -2
- package/dist/options-CtTcew0x.d.ts +0 -42
- package/dist/options-qs66-MV7.d.cts +0 -42
- package/dist/raw-B-nh3eEu.cjs +0 -97
- package/dist/raw-CrS9IkfP.js +0 -92
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.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,5 +1,9 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
1
3
|
import unplugin from "./index.js";
|
|
4
|
+
|
|
2
5
|
//#region src/esbuild.ts
|
|
3
6
|
var esbuild_default = unplugin.esbuild;
|
|
7
|
+
|
|
4
8
|
//#endregion
|
|
5
|
-
export { esbuild_default as default };
|
|
9
|
+
export { esbuild_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require(
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_core = require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_options = require('./options.cjs');
|
|
5
|
+
const require_raw = require('./raw.cjs');
|
|
6
|
+
let unplugin = require("unplugin");
|
|
7
|
+
|
|
8
8
|
//#region src/index.ts
|
|
9
|
-
const unplugin$1 = (0,
|
|
9
|
+
const unplugin$1 = (0, unplugin.createUnplugin)(require_raw.default);
|
|
10
|
+
|
|
10
11
|
//#endregion
|
|
11
12
|
exports.default = unplugin$1;
|
|
12
|
-
exports.resolveOptions = require_options.resolveOptions;
|
|
13
|
+
exports.resolveOptions = require_options.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseOptions, Options, OptionsResolved, resolveOptions } from "./options.cjs";
|
|
2
2
|
import { UnpluginInstance } from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseOptions, Options, OptionsResolved, resolveOptions } from "./options.js";
|
|
2
2
|
import { UnpluginInstance } from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
2
3
|
import { resolveOptions } from "./options.js";
|
|
4
|
+
import plugin from "./raw.js";
|
|
3
5
|
import { createUnplugin } from "unplugin";
|
|
6
|
+
|
|
4
7
|
//#region src/index.ts
|
|
5
8
|
const unplugin = createUnplugin(plugin);
|
|
9
|
+
|
|
6
10
|
//#endregion
|
|
7
|
-
export { unplugin as default, resolveOptions };
|
|
11
|
+
export { unplugin as default, resolveOptions };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require(
|
|
6
|
-
const require_vite = require("./vite.cjs");
|
|
7
|
-
const require_webpack = require("./webpack.cjs");
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_core = require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_vite = require('./vite.cjs');
|
|
5
|
+
const require_webpack = require('./webpack.cjs');
|
|
8
6
|
let _nuxt_kit = require("@nuxt/kit");
|
|
9
7
|
require("@nuxt/schema");
|
|
8
|
+
|
|
10
9
|
//#region src/nuxt.ts
|
|
11
10
|
var nuxt_default = (0, _nuxt_kit.defineNuxtModule)({
|
|
12
11
|
meta: {
|
|
13
|
-
name: "nuxt-vue-jsx-vapor",
|
|
12
|
+
name: "nuxt-vue-jsx-vapor-macros",
|
|
14
13
|
configKey: "unpluginStarter"
|
|
15
14
|
},
|
|
16
15
|
setup(options) {
|
|
@@ -18,5 +17,6 @@ var nuxt_default = (0, _nuxt_kit.defineNuxtModule)({
|
|
|
18
17
|
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack.default(options));
|
|
19
18
|
}
|
|
20
19
|
});
|
|
20
|
+
|
|
21
21
|
//#endregion
|
|
22
|
-
exports.default = nuxt_default;
|
|
22
|
+
exports.default = nuxt_default;
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.cjs";
|
|
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:
|
|
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 {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.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:
|
|
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,14 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
1
3
|
import vite_default from "./vite.js";
|
|
2
4
|
import webpack_default from "./webpack.js";
|
|
3
5
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
4
6
|
import "@nuxt/schema";
|
|
7
|
+
|
|
5
8
|
//#region src/nuxt.ts
|
|
6
9
|
var nuxt_default = defineNuxtModule({
|
|
7
10
|
meta: {
|
|
8
|
-
name: "nuxt-vue-jsx-vapor",
|
|
11
|
+
name: "nuxt-vue-jsx-vapor-macros",
|
|
9
12
|
configKey: "unpluginStarter"
|
|
10
13
|
},
|
|
11
14
|
setup(options) {
|
|
@@ -13,5 +16,6 @@ var nuxt_default = defineNuxtModule({
|
|
|
13
16
|
addWebpackPlugin(() => webpack_default(options));
|
|
14
17
|
}
|
|
15
18
|
});
|
|
19
|
+
|
|
16
20
|
//#endregion
|
|
17
|
-
export { nuxt_default as default };
|
|
21
|
+
export { nuxt_default as default };
|
package/dist/options.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
2
3
|
//#region src/options.ts
|
|
3
4
|
const REGEX_NODE_MODULES = /node_modules/;
|
|
4
5
|
const REGEX_SRC_FILE = /\.[cm]?[jt]sx?$/;
|
|
@@ -25,5 +26,6 @@ function resolveOptions(options) {
|
|
|
25
26
|
defineStyle: { alias: options.defineStyle?.alias ?? ["defineStyle"] }
|
|
26
27
|
};
|
|
27
28
|
}
|
|
29
|
+
|
|
28
30
|
//#endregion
|
|
29
|
-
exports.resolveOptions = resolveOptions;
|
|
31
|
+
exports.resolveOptions = resolveOptions;
|
package/dist/options.d.cts
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterPattern } from "unplugin";
|
|
2
|
+
|
|
3
|
+
//#region src/options.d.ts
|
|
4
|
+
interface BaseOptions {
|
|
5
|
+
include?: FilterPattern;
|
|
6
|
+
exclude?: FilterPattern;
|
|
7
|
+
version?: number;
|
|
8
|
+
isProduction?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type MarkRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
11
|
+
type DefineComponentOptions = {
|
|
12
|
+
alias?: string[];
|
|
13
|
+
};
|
|
14
|
+
type DefineModelOptions = {
|
|
15
|
+
alias?: string[];
|
|
16
|
+
};
|
|
17
|
+
type DefineExposeOptions = {
|
|
18
|
+
alias?: string[];
|
|
19
|
+
};
|
|
20
|
+
type DefineSlotsOptions = {
|
|
21
|
+
alias?: string[];
|
|
22
|
+
};
|
|
23
|
+
type DefineStyleOptions = {
|
|
24
|
+
alias?: string[];
|
|
25
|
+
};
|
|
26
|
+
type Options = BaseOptions & {
|
|
27
|
+
defineComponent?: DefineComponentOptions;
|
|
28
|
+
defineModel?: DefineModelOptions;
|
|
29
|
+
defineExpose?: DefineExposeOptions;
|
|
30
|
+
defineSlots?: DefineSlotsOptions;
|
|
31
|
+
defineStyle?: DefineStyleOptions;
|
|
32
|
+
};
|
|
33
|
+
type OptionsResolved = MarkRequired<Options, 'include' | 'version'> & {
|
|
34
|
+
defineComponent: MarkRequired<DefineComponentOptions, 'alias'>;
|
|
35
|
+
defineModel: MarkRequired<DefineModelOptions, 'alias'>;
|
|
36
|
+
defineExpose: MarkRequired<DefineExposeOptions, 'alias'>;
|
|
37
|
+
defineSlots: MarkRequired<DefineSlotsOptions, 'alias'>;
|
|
38
|
+
defineStyle: MarkRequired<DefineStyleOptions, 'alias'>;
|
|
39
|
+
};
|
|
40
|
+
declare function resolveOptions(options: Options): OptionsResolved;
|
|
41
|
+
//#endregion
|
|
2
42
|
export { BaseOptions, Options, OptionsResolved, resolveOptions };
|
package/dist/options.d.ts
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterPattern } from "unplugin";
|
|
2
|
+
|
|
3
|
+
//#region src/options.d.ts
|
|
4
|
+
interface BaseOptions {
|
|
5
|
+
include?: FilterPattern;
|
|
6
|
+
exclude?: FilterPattern;
|
|
7
|
+
version?: number;
|
|
8
|
+
isProduction?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type MarkRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
11
|
+
type DefineComponentOptions = {
|
|
12
|
+
alias?: string[];
|
|
13
|
+
};
|
|
14
|
+
type DefineModelOptions = {
|
|
15
|
+
alias?: string[];
|
|
16
|
+
};
|
|
17
|
+
type DefineExposeOptions = {
|
|
18
|
+
alias?: string[];
|
|
19
|
+
};
|
|
20
|
+
type DefineSlotsOptions = {
|
|
21
|
+
alias?: string[];
|
|
22
|
+
};
|
|
23
|
+
type DefineStyleOptions = {
|
|
24
|
+
alias?: string[];
|
|
25
|
+
};
|
|
26
|
+
type Options = BaseOptions & {
|
|
27
|
+
defineComponent?: DefineComponentOptions;
|
|
28
|
+
defineModel?: DefineModelOptions;
|
|
29
|
+
defineExpose?: DefineExposeOptions;
|
|
30
|
+
defineSlots?: DefineSlotsOptions;
|
|
31
|
+
defineStyle?: DefineStyleOptions;
|
|
32
|
+
};
|
|
33
|
+
type OptionsResolved = MarkRequired<Options, 'include' | 'version'> & {
|
|
34
|
+
defineComponent: MarkRequired<DefineComponentOptions, 'alias'>;
|
|
35
|
+
defineModel: MarkRequired<DefineModelOptions, 'alias'>;
|
|
36
|
+
defineExpose: MarkRequired<DefineExposeOptions, 'alias'>;
|
|
37
|
+
defineSlots: MarkRequired<DefineSlotsOptions, 'alias'>;
|
|
38
|
+
defineStyle: MarkRequired<DefineStyleOptions, 'alias'>;
|
|
39
|
+
};
|
|
40
|
+
declare function resolveOptions(options: Options): OptionsResolved;
|
|
41
|
+
//#endregion
|
|
2
42
|
export { BaseOptions, Options, OptionsResolved, resolveOptions };
|
package/dist/options.js
CHANGED
package/dist/raw.cjs
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_core = require('./core-D-SjmK2V.cjs');
|
|
3
|
+
const require_style = require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_options = require('./options.cjs');
|
|
5
|
+
|
|
6
|
+
//#region src/raw.ts
|
|
7
|
+
const plugin = (userOptions = {}) => {
|
|
8
|
+
const options = require_options.resolveOptions(userOptions);
|
|
9
|
+
const importMap = /* @__PURE__ */ new Map();
|
|
10
|
+
const macrosHelperId = /^\/vue-jsx-vapor\/macros\//;
|
|
11
|
+
const defineStyleHelperId = /^\/vue-jsx-vapor\/macros\/define-style/;
|
|
12
|
+
return [{
|
|
13
|
+
name: "@vue-jsx-vapor/macros",
|
|
14
|
+
enforce: "pre",
|
|
15
|
+
resolveId: {
|
|
16
|
+
filter: { id: macrosHelperId },
|
|
17
|
+
handler(id) {
|
|
18
|
+
return id;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
load: {
|
|
22
|
+
filter: { id: macrosHelperId },
|
|
23
|
+
handler(id) {
|
|
24
|
+
if (id === require_core.useModelHelperId) return require_core.use_model_default;
|
|
25
|
+
if (id === require_core.withDefaultsHelperId) return require_core.with_defaults_default;
|
|
26
|
+
if (id === require_core.useSlotsHelperId) return require_core.use_slots_default;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
transform: {
|
|
30
|
+
filter: {
|
|
31
|
+
id: {
|
|
32
|
+
include: options.include,
|
|
33
|
+
exclude: options.exclude
|
|
34
|
+
},
|
|
35
|
+
code: [
|
|
36
|
+
...options.defineComponent.alias,
|
|
37
|
+
...options.defineExpose.alias,
|
|
38
|
+
...options.defineModel.alias,
|
|
39
|
+
...options.defineSlots.alias,
|
|
40
|
+
...options.defineStyle.alias
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
handler(code, id) {
|
|
44
|
+
return require_core.transformJsxMacros(code, id, importMap, options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
name: "@vue-jsx-vapor/macros/define-style",
|
|
49
|
+
resolveId: {
|
|
50
|
+
filter: { id: defineStyleHelperId },
|
|
51
|
+
handler(id) {
|
|
52
|
+
return id;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
load: {
|
|
56
|
+
filter: { id: defineStyleHelperId },
|
|
57
|
+
handler(id) {
|
|
58
|
+
return importMap.get(id);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
transform: {
|
|
62
|
+
filter: { id: defineStyleHelperId },
|
|
63
|
+
handler(code, id) {
|
|
64
|
+
return require_style.transformStyle(code, id, options);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
exports.default = plugin;
|
package/dist/raw.d.cts
CHANGED
package/dist/raw.d.ts
CHANGED
package/dist/raw.js
CHANGED
|
@@ -1,2 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { c as withDefaultsHelperId, d as use_model_default, l as with_defaults_default, n as transformJsxMacros, o as useModelHelperId, s as useSlotsHelperId, u as use_slots_default } from "./core-DN_L2oPP.js";
|
|
2
|
+
import { t as transformStyle } from "./style-T_SCIOuW.js";
|
|
3
|
+
import { resolveOptions } from "./options.js";
|
|
4
|
+
|
|
5
|
+
//#region src/raw.ts
|
|
6
|
+
const plugin = (userOptions = {}) => {
|
|
7
|
+
const options = resolveOptions(userOptions);
|
|
8
|
+
const importMap = /* @__PURE__ */ new Map();
|
|
9
|
+
const macrosHelperId = /^\/vue-jsx-vapor\/macros\//;
|
|
10
|
+
const defineStyleHelperId = /^\/vue-jsx-vapor\/macros\/define-style/;
|
|
11
|
+
return [{
|
|
12
|
+
name: "@vue-jsx-vapor/macros",
|
|
13
|
+
enforce: "pre",
|
|
14
|
+
resolveId: {
|
|
15
|
+
filter: { id: macrosHelperId },
|
|
16
|
+
handler(id) {
|
|
17
|
+
return id;
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
load: {
|
|
21
|
+
filter: { id: macrosHelperId },
|
|
22
|
+
handler(id) {
|
|
23
|
+
if (id === useModelHelperId) return use_model_default;
|
|
24
|
+
if (id === withDefaultsHelperId) return with_defaults_default;
|
|
25
|
+
if (id === useSlotsHelperId) return use_slots_default;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
transform: {
|
|
29
|
+
filter: {
|
|
30
|
+
id: {
|
|
31
|
+
include: options.include,
|
|
32
|
+
exclude: options.exclude
|
|
33
|
+
},
|
|
34
|
+
code: [
|
|
35
|
+
...options.defineComponent.alias,
|
|
36
|
+
...options.defineExpose.alias,
|
|
37
|
+
...options.defineModel.alias,
|
|
38
|
+
...options.defineSlots.alias,
|
|
39
|
+
...options.defineStyle.alias
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
handler(code, id) {
|
|
43
|
+
return transformJsxMacros(code, id, importMap, options);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
name: "@vue-jsx-vapor/macros/define-style",
|
|
48
|
+
resolveId: {
|
|
49
|
+
filter: { id: defineStyleHelperId },
|
|
50
|
+
handler(id) {
|
|
51
|
+
return id;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
load: {
|
|
55
|
+
filter: { id: defineStyleHelperId },
|
|
56
|
+
handler(id) {
|
|
57
|
+
return importMap.get(id);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
transform: {
|
|
61
|
+
filter: { id: defineStyleHelperId },
|
|
62
|
+
handler(code, id) {
|
|
63
|
+
return transformStyle(code, id, options);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { plugin as default };
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_index = require('./index.cjs');
|
|
5
|
+
|
|
5
6
|
//#region src/rolldown.ts
|
|
6
|
-
var rolldown_default =
|
|
7
|
+
var rolldown_default = require_index.default.rolldown;
|
|
8
|
+
|
|
7
9
|
//#endregion
|
|
8
|
-
exports.default = rolldown_default;
|
|
10
|
+
exports.default = rolldown_default;
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.cjs";
|
|
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.RolldownPlugin<any> | unplugin.RolldownPlugin<any>[];
|
|
6
6
|
export = _default;
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.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.RolldownPlugin<any> | unplugin.RolldownPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rolldown.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
1
3
|
import unplugin from "./index.js";
|
|
4
|
+
|
|
2
5
|
//#region src/rolldown.ts
|
|
3
6
|
var rolldown_default = unplugin.rolldown;
|
|
7
|
+
|
|
4
8
|
//#endregion
|
|
5
|
-
export { rolldown_default as default };
|
|
9
|
+
export { rolldown_default as default };
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_index = require('./index.cjs');
|
|
5
|
+
|
|
5
6
|
//#region src/rollup.ts
|
|
6
|
-
var rollup_default =
|
|
7
|
+
var rollup_default = require_index.default.rollup;
|
|
8
|
+
|
|
7
9
|
//#endregion
|
|
8
|
-
exports.default = rollup_default;
|
|
10
|
+
exports.default = rollup_default;
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.cjs";
|
|
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> | unplugin.RollupPlugin<any>[];
|
|
6
6
|
export = _default;
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./options.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> | unplugin.RollupPlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
1
3
|
import unplugin from "./index.js";
|
|
4
|
+
|
|
2
5
|
//#region src/rollup.ts
|
|
3
6
|
var rollup_default = unplugin.rollup;
|
|
7
|
+
|
|
4
8
|
//#endregion
|
|
5
|
-
export { rollup_default as default };
|
|
9
|
+
export { rollup_default as default };
|
package/dist/rsbuild.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_index = require('./index.cjs');
|
|
5
|
+
|
|
6
|
+
//#region src/rsbuild.ts
|
|
7
|
+
var rsbuild_default = (options = {}) => ({
|
|
8
|
+
name: "rsbuild:vue-jsx-vapor-macros",
|
|
9
|
+
setup(api) {
|
|
10
|
+
api.modifyBundlerChain((chain) => {
|
|
11
|
+
chain.plugin("vue-jsx-vapor-macros").use(require_index.default.rspack(options));
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.default = rsbuild_default;
|
package/dist/rsbuild.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
3
|
+
import unplugin from "./index.js";
|
|
4
|
+
|
|
5
|
+
//#region src/rsbuild.ts
|
|
6
|
+
var rsbuild_default = (options = {}) => ({
|
|
7
|
+
name: "rsbuild:vue-jsx-vapor-macros",
|
|
8
|
+
setup(api) {
|
|
9
|
+
api.modifyBundlerChain((chain) => {
|
|
10
|
+
chain.plugin("vue-jsx-vapor-macros").use(unplugin.rspack(options));
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { rsbuild_default as default };
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./core-D-SjmK2V.cjs');
|
|
3
|
+
require('./style-CYbYjV0s.cjs');
|
|
4
|
+
const require_index = require('./index.cjs');
|
|
5
|
+
|
|
5
6
|
//#region src/rspack.ts
|
|
6
|
-
var rspack_default =
|
|
7
|
+
var rspack_default = require_index.default.rspack;
|
|
8
|
+
|
|
7
9
|
//#endregion
|
|
8
|
-
exports.default = rspack_default;
|
|
10
|
+
exports.default = rspack_default;
|
package/dist/rspack.d.cts
CHANGED
package/dist/rspack.d.ts
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import "./core-DN_L2oPP.js";
|
|
2
|
+
import "./style-T_SCIOuW.js";
|
|
1
3
|
import unplugin from "./index.js";
|
|
4
|
+
|
|
2
5
|
//#region src/rspack.ts
|
|
3
6
|
var rspack_default = unplugin.rspack;
|
|
7
|
+
|
|
4
8
|
//#endregion
|
|
5
|
-
export { rspack_default as default };
|
|
9
|
+
export { rspack_default as default };
|