vue-jsx-vapor 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/api.cjs +12 -0
- package/dist/api.d.cts +22 -0
- package/dist/api.d.ts +22 -0
- package/dist/api.js +12 -0
- package/dist/astro.cjs +22 -0
- package/dist/astro.d.cts +13 -0
- package/dist/astro.d.ts +13 -0
- package/dist/astro.js +20 -0
- package/dist/chunk-2XDZG77D.js +41 -0
- package/dist/chunk-44HSQ6SC.js +10 -0
- package/dist/chunk-BPYHZ47Y.js +43 -0
- package/dist/chunk-CROZ7JES.cjs +41 -0
- package/dist/chunk-GODVM7NB.cjs +1 -0
- package/dist/chunk-I563YEVV.cjs +10 -0
- package/dist/chunk-IZRO67YR.cjs +56 -0
- package/dist/chunk-JGG42DZI.js +56 -0
- package/dist/chunk-JNAGPWSX.js +0 -0
- package/dist/chunk-M735SGJG.cjs +10 -0
- package/dist/chunk-MGTJQG6U.cjs +43 -0
- package/dist/chunk-YGTVDW3A.js +10 -0
- package/dist/esbuild.cjs +14 -0
- package/dist/esbuild.d.cts +9 -0
- package/dist/esbuild.d.ts +9 -0
- package/dist/esbuild.js +12 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/nuxt.cjs +29 -0
- package/dist/nuxt.d.cts +11 -0
- package/dist/nuxt.d.ts +11 -0
- package/dist/nuxt.js +27 -0
- package/dist/options.cjs +1 -0
- package/dist/options.d.cts +18 -0
- package/dist/options.d.ts +18 -0
- package/dist/options.js +1 -0
- package/dist/raw.cjs +9 -0
- package/dist/raw.d.cts +9 -0
- package/dist/raw.d.ts +9 -0
- package/dist/raw.js +7 -0
- package/dist/rolldown.cjs +15 -0
- package/dist/rolldown.d.cts +9 -0
- package/dist/rolldown.d.ts +9 -0
- package/dist/rolldown.js +13 -0
- package/dist/rollup.cjs +14 -0
- package/dist/rollup.d.cts +9 -0
- package/dist/rollup.d.ts +9 -0
- package/dist/rollup.js +12 -0
- package/dist/rspack.cjs +14 -0
- package/dist/rspack.d.cts +8 -0
- package/dist/rspack.d.ts +8 -0
- package/dist/rspack.js +12 -0
- package/dist/unplugin.cjs +13 -0
- package/dist/unplugin.d.cts +11 -0
- package/dist/unplugin.d.ts +11 -0
- package/dist/unplugin.js +13 -0
- package/dist/vite.cjs +12 -0
- package/dist/vite.d.cts +9 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.js +10 -0
- package/dist/volar.cjs +20 -0
- package/dist/volar.d.cts +9 -0
- package/dist/volar.d.ts +9 -0
- package/dist/volar.js +18 -0
- package/dist/webpack.cjs +12 -0
- package/dist/webpack.d.cts +9 -0
- package/dist/webpack.d.ts +9 -0
- package/dist/webpack.js +10 -0
- package/package.json +216 -0
package/dist/nuxt.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
vite_default
|
|
3
|
+
} from "./chunk-YGTVDW3A.js";
|
|
4
|
+
import {
|
|
5
|
+
webpack_default
|
|
6
|
+
} from "./chunk-44HSQ6SC.js";
|
|
7
|
+
import "./chunk-BPYHZ47Y.js";
|
|
8
|
+
import "./chunk-JNAGPWSX.js";
|
|
9
|
+
import "./chunk-JGG42DZI.js";
|
|
10
|
+
import "./chunk-2XDZG77D.js";
|
|
11
|
+
|
|
12
|
+
// src/nuxt.ts
|
|
13
|
+
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
14
|
+
import "@nuxt/schema";
|
|
15
|
+
var nuxt_default = defineNuxtModule({
|
|
16
|
+
meta: {
|
|
17
|
+
name: "nuxt-vue-jsx-vapor",
|
|
18
|
+
configKey: "unpluginStarter"
|
|
19
|
+
},
|
|
20
|
+
setup(options) {
|
|
21
|
+
addVitePlugin(() => vite_default(options));
|
|
22
|
+
addWebpackPlugin(() => webpack_default(options));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
nuxt_default as default
|
|
27
|
+
};
|
package/dist/options.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./chunk-GODVM7NB.cjs');
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompilerOptions } from '@vue-jsx-vapor/compiler';
|
|
2
|
+
import { Options as Options$1 } from '@vue-jsx-vapor/macros';
|
|
3
|
+
import { FilterPattern } from 'unplugin-utils';
|
|
4
|
+
|
|
5
|
+
interface Options {
|
|
6
|
+
include?: FilterPattern;
|
|
7
|
+
exclude?: FilterPattern;
|
|
8
|
+
interop?: boolean;
|
|
9
|
+
compile?: CompilerOptions;
|
|
10
|
+
/** @default true */
|
|
11
|
+
ref?: {
|
|
12
|
+
alias?: string[];
|
|
13
|
+
} | boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
macros?: Options$1 | boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type { Options };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompilerOptions } from '@vue-jsx-vapor/compiler';
|
|
2
|
+
import { Options as Options$1 } from '@vue-jsx-vapor/macros';
|
|
3
|
+
import { FilterPattern } from 'unplugin-utils';
|
|
4
|
+
|
|
5
|
+
interface Options {
|
|
6
|
+
include?: FilterPattern;
|
|
7
|
+
exclude?: FilterPattern;
|
|
8
|
+
interop?: boolean;
|
|
9
|
+
compile?: CompilerOptions;
|
|
10
|
+
/** @default true */
|
|
11
|
+
ref?: {
|
|
12
|
+
alias?: string[];
|
|
13
|
+
} | boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
macros?: Options$1 | boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type { Options };
|
package/dist/options.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-JNAGPWSX.js";
|
package/dist/raw.cjs
ADDED
package/dist/raw.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Options } from './options.cjs';
|
|
2
|
+
import { UnpluginOptions } from 'unplugin';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const plugin: (options?: Options) => UnpluginOptions[];
|
|
8
|
+
|
|
9
|
+
export = plugin;
|
package/dist/raw.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Options } from './options.js';
|
|
2
|
+
import { UnpluginOptions } from 'unplugin';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const plugin: (options?: Options) => UnpluginOptions[];
|
|
8
|
+
|
|
9
|
+
export { plugin as default };
|
package/dist/raw.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkMGTJQG6Ucjs = require('./chunk-MGTJQG6U.cjs');
|
|
4
|
+
require('./chunk-GODVM7NB.cjs');
|
|
5
|
+
require('./chunk-IZRO67YR.cjs');
|
|
6
|
+
require('./chunk-CROZ7JES.cjs');
|
|
7
|
+
|
|
8
|
+
// src/rolldown.ts
|
|
9
|
+
var _unplugin = require('unplugin');
|
|
10
|
+
var rolldown_default = _unplugin.createRollupPlugin.call(void 0, _chunkMGTJQG6Ucjs.unpluginFactory);
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.default = rolldown_default;
|
|
14
|
+
|
|
15
|
+
module.exports = exports.default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
import { Options } from './options.cjs';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export = _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
import { Options } from './options.js';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/rolldown.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
unpluginFactory
|
|
3
|
+
} from "./chunk-BPYHZ47Y.js";
|
|
4
|
+
import "./chunk-JNAGPWSX.js";
|
|
5
|
+
import "./chunk-JGG42DZI.js";
|
|
6
|
+
import "./chunk-2XDZG77D.js";
|
|
7
|
+
|
|
8
|
+
// src/rolldown.ts
|
|
9
|
+
import { createRollupPlugin } from "unplugin";
|
|
10
|
+
var rolldown_default = createRollupPlugin(unpluginFactory);
|
|
11
|
+
export {
|
|
12
|
+
rolldown_default as default
|
|
13
|
+
};
|
package/dist/rollup.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkMGTJQG6Ucjs = require('./chunk-MGTJQG6U.cjs');
|
|
4
|
+
require('./chunk-GODVM7NB.cjs');
|
|
5
|
+
require('./chunk-IZRO67YR.cjs');
|
|
6
|
+
require('./chunk-CROZ7JES.cjs');
|
|
7
|
+
|
|
8
|
+
// src/rollup.ts
|
|
9
|
+
var rollup_default = _chunkMGTJQG6Ucjs.unplugin_default.rollup;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.default = rollup_default;
|
|
13
|
+
|
|
14
|
+
module.exports = exports.default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
import { Options } from './options.cjs';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export = _default;
|
package/dist/rollup.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
import { Options } from './options.js';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/rollup.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
unplugin_default
|
|
3
|
+
} from "./chunk-BPYHZ47Y.js";
|
|
4
|
+
import "./chunk-JNAGPWSX.js";
|
|
5
|
+
import "./chunk-JGG42DZI.js";
|
|
6
|
+
import "./chunk-2XDZG77D.js";
|
|
7
|
+
|
|
8
|
+
// src/rollup.ts
|
|
9
|
+
var rollup_default = unplugin_default.rollup;
|
|
10
|
+
export {
|
|
11
|
+
rollup_default as default
|
|
12
|
+
};
|
package/dist/rspack.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkMGTJQG6Ucjs = require('./chunk-MGTJQG6U.cjs');
|
|
4
|
+
require('./chunk-GODVM7NB.cjs');
|
|
5
|
+
require('./chunk-IZRO67YR.cjs');
|
|
6
|
+
require('./chunk-CROZ7JES.cjs');
|
|
7
|
+
|
|
8
|
+
// src/rspack.ts
|
|
9
|
+
var rspack_default = _chunkMGTJQG6Ucjs.unplugin_default.rspack;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.default = rspack_default;
|
|
13
|
+
|
|
14
|
+
module.exports = exports.default;
|
package/dist/rspack.d.ts
ADDED
package/dist/rspack.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
unplugin_default
|
|
3
|
+
} from "./chunk-BPYHZ47Y.js";
|
|
4
|
+
import "./chunk-JNAGPWSX.js";
|
|
5
|
+
import "./chunk-JGG42DZI.js";
|
|
6
|
+
import "./chunk-2XDZG77D.js";
|
|
7
|
+
|
|
8
|
+
// src/rspack.ts
|
|
9
|
+
var rspack_default = unplugin_default.rspack;
|
|
10
|
+
export {
|
|
11
|
+
rspack_default as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkMGTJQG6Ucjs = require('./chunk-MGTJQG6U.cjs');
|
|
6
|
+
require('./chunk-GODVM7NB.cjs');
|
|
7
|
+
require('./chunk-IZRO67YR.cjs');
|
|
8
|
+
require('./chunk-CROZ7JES.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.default = _chunkMGTJQG6Ucjs.unplugin_default; exports.unplugin = _chunkMGTJQG6Ucjs.unplugin; exports.unpluginFactory = _chunkMGTJQG6Ucjs.unpluginFactory;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _unplugin from 'unplugin';
|
|
2
|
+
import { UnpluginFactory } from 'unplugin';
|
|
3
|
+
import { Options } from './options.cjs';
|
|
4
|
+
import '@vue-jsx-vapor/compiler';
|
|
5
|
+
import '@vue-jsx-vapor/macros';
|
|
6
|
+
import 'unplugin-utils';
|
|
7
|
+
|
|
8
|
+
declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
|
|
9
|
+
declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, true>;
|
|
10
|
+
|
|
11
|
+
export { Options, unplugin as default, unplugin, unpluginFactory };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _unplugin from 'unplugin';
|
|
2
|
+
import { UnpluginFactory } from 'unplugin';
|
|
3
|
+
import { Options } from './options.js';
|
|
4
|
+
import '@vue-jsx-vapor/compiler';
|
|
5
|
+
import '@vue-jsx-vapor/macros';
|
|
6
|
+
import 'unplugin-utils';
|
|
7
|
+
|
|
8
|
+
declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
|
|
9
|
+
declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, true>;
|
|
10
|
+
|
|
11
|
+
export { Options, unplugin as default, unplugin, unpluginFactory };
|
package/dist/unplugin.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
unplugin,
|
|
3
|
+
unpluginFactory,
|
|
4
|
+
unplugin_default
|
|
5
|
+
} from "./chunk-BPYHZ47Y.js";
|
|
6
|
+
import "./chunk-JNAGPWSX.js";
|
|
7
|
+
import "./chunk-JGG42DZI.js";
|
|
8
|
+
import "./chunk-2XDZG77D.js";
|
|
9
|
+
export {
|
|
10
|
+
unplugin_default as default,
|
|
11
|
+
unplugin,
|
|
12
|
+
unpluginFactory
|
|
13
|
+
};
|
package/dist/vite.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkI563YEVVcjs = require('./chunk-I563YEVV.cjs');
|
|
4
|
+
require('./chunk-MGTJQG6U.cjs');
|
|
5
|
+
require('./chunk-GODVM7NB.cjs');
|
|
6
|
+
require('./chunk-IZRO67YR.cjs');
|
|
7
|
+
require('./chunk-CROZ7JES.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.default = _chunkI563YEVVcjs.vite_default;
|
|
11
|
+
|
|
12
|
+
module.exports = exports.default;
|
package/dist/vite.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import { Options } from './options.cjs';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => vite.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export = _default;
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import { Options } from './options.js';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => vite.Plugin<any>[];
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/vite.js
ADDED
package/dist/volar.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/volar.ts
|
|
2
|
+
var _volar = require('@vue-jsx-vapor/macros/volar'); var _volar2 = _interopRequireDefault(_volar);
|
|
3
|
+
var _jsxdirective = require('@vue-macros/volar/jsx-directive'); var _jsxdirective2 = _interopRequireDefault(_jsxdirective);
|
|
4
|
+
var _jsxref = require('@vue-macros/volar/jsx-ref'); var _jsxref2 = _interopRequireDefault(_jsxref);
|
|
5
|
+
var _tsmacro = require('ts-macro');
|
|
6
|
+
var plugin = _tsmacro.createPlugin.call(void 0,
|
|
7
|
+
(ctx, options) => {
|
|
8
|
+
return [
|
|
9
|
+
_jsxdirective2.default.call(void 0, )(ctx),
|
|
10
|
+
_optionalChain([options, 'optionalAccess', _ => _.ref]) === false ? [] : _jsxref2.default.call(void 0, _optionalChain([options, 'optionalAccess', _2 => _2.ref]) === true ? void 0 : _optionalChain([options, 'optionalAccess', _3 => _3.ref]))(ctx),
|
|
11
|
+
_optionalChain([options, 'optionalAccess', _4 => _4.macros]) === false ? [] : _optionalChain([options, 'optionalAccess', _5 => _5.macros]) ? _volar2.default.call(void 0, options.macros ? void 0 : options.macros)(ctx) : []
|
|
12
|
+
].flat();
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
var volar_default = plugin;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.default = volar_default;
|
|
19
|
+
|
|
20
|
+
module.exports = exports.default;
|
package/dist/volar.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PluginReturn } from 'ts-macro';
|
|
2
|
+
import { Options } from './options.cjs';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const plugin: PluginReturn<Options | undefined, true>;
|
|
8
|
+
|
|
9
|
+
export = plugin;
|
package/dist/volar.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PluginReturn } from 'ts-macro';
|
|
2
|
+
import { Options } from './options.js';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const plugin: PluginReturn<Options | undefined, true>;
|
|
8
|
+
|
|
9
|
+
export { plugin as default };
|
package/dist/volar.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/volar.ts
|
|
2
|
+
import jsxMacros from "@vue-jsx-vapor/macros/volar";
|
|
3
|
+
import jsxDirective from "@vue-macros/volar/jsx-directive";
|
|
4
|
+
import jsxRef from "@vue-macros/volar/jsx-ref";
|
|
5
|
+
import { createPlugin } from "ts-macro";
|
|
6
|
+
var plugin = createPlugin(
|
|
7
|
+
(ctx, options) => {
|
|
8
|
+
return [
|
|
9
|
+
jsxDirective()(ctx),
|
|
10
|
+
options?.ref === false ? [] : jsxRef(options?.ref === true ? void 0 : options?.ref)(ctx),
|
|
11
|
+
options?.macros === false ? [] : options?.macros ? jsxMacros(options.macros ? void 0 : options.macros)(ctx) : []
|
|
12
|
+
].flat();
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
var volar_default = plugin;
|
|
16
|
+
export {
|
|
17
|
+
volar_default as default
|
|
18
|
+
};
|
package/dist/webpack.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkM735SGJGcjs = require('./chunk-M735SGJG.cjs');
|
|
4
|
+
require('./chunk-MGTJQG6U.cjs');
|
|
5
|
+
require('./chunk-GODVM7NB.cjs');
|
|
6
|
+
require('./chunk-IZRO67YR.cjs');
|
|
7
|
+
require('./chunk-CROZ7JES.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.default = _chunkM735SGJGcjs.webpack_default;
|
|
11
|
+
|
|
12
|
+
module.exports = exports.default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
import { Options } from './options.cjs';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
|
|
8
|
+
|
|
9
|
+
export = _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
import { Options } from './options.js';
|
|
3
|
+
import '@vue-jsx-vapor/compiler';
|
|
4
|
+
import '@vue-jsx-vapor/macros';
|
|
5
|
+
import 'unplugin-utils';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/webpack.js
ADDED