@vue.ts/complex-types 0.6.0 → 1.0.0-beta.1

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.
Files changed (66) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +19 -0
  3. package/dist/astro.d.ts +8 -10
  4. package/dist/astro.js +14 -0
  5. package/dist/esbuild.d.ts +7 -8
  6. package/dist/esbuild.js +8 -0
  7. package/dist/farm.d.ts +8 -0
  8. package/dist/farm.js +8 -0
  9. package/dist/index.d.ts +8 -8
  10. package/dist/index.js +3 -0
  11. package/dist/nuxt.d.ts +7 -8
  12. package/dist/nuxt.js +20 -0
  13. package/dist/rolldown.d.ts +8 -0
  14. package/dist/rolldown.js +8 -0
  15. package/dist/rollup.d.ts +7 -8
  16. package/dist/rollup.js +8 -0
  17. package/dist/rspack.d.ts +5 -6
  18. package/dist/rspack.js +8 -0
  19. package/dist/src-CI8-WIu4.js +354 -0
  20. package/dist/types-CFmCIAvs.d.ts +51 -0
  21. package/dist/types-u_Hr5uXA.d.ts +1 -0
  22. package/dist/types.d.ts +3 -30
  23. package/dist/types.js +0 -0
  24. package/dist/vite-Dyi1m2wg.js +8 -0
  25. package/dist/vite.d.ts +7 -8
  26. package/dist/vite.js +4 -0
  27. package/dist/webpack-CFfuQfGw.js +8 -0
  28. package/dist/webpack.d.ts +7 -8
  29. package/dist/webpack.js +4 -0
  30. package/package.json +67 -53
  31. package/dist/astro.cjs +0 -22
  32. package/dist/astro.d.cts +0 -13
  33. package/dist/astro.d.mts +0 -13
  34. package/dist/astro.mjs +0 -20
  35. package/dist/esbuild.cjs +0 -13
  36. package/dist/esbuild.d.cts +0 -9
  37. package/dist/esbuild.d.mts +0 -9
  38. package/dist/esbuild.mjs +0 -11
  39. package/dist/index.cjs +0 -238
  40. package/dist/index.d.cts +0 -9
  41. package/dist/index.d.mts +0 -9
  42. package/dist/index.mjs +0 -231
  43. package/dist/nuxt.cjs +0 -35
  44. package/dist/nuxt.d.cts +0 -9
  45. package/dist/nuxt.d.mts +0 -9
  46. package/dist/nuxt.mjs +0 -33
  47. package/dist/rollup.cjs +0 -13
  48. package/dist/rollup.d.cts +0 -9
  49. package/dist/rollup.d.mts +0 -9
  50. package/dist/rollup.mjs +0 -11
  51. package/dist/rspack.cjs +0 -13
  52. package/dist/rspack.d.cts +0 -8
  53. package/dist/rspack.d.mts +0 -8
  54. package/dist/rspack.mjs +0 -11
  55. package/dist/types.cjs +0 -2
  56. package/dist/types.d.cts +0 -30
  57. package/dist/types.d.mts +0 -30
  58. package/dist/types.mjs +0 -1
  59. package/dist/vite.cjs +0 -13
  60. package/dist/vite.d.cts +0 -9
  61. package/dist/vite.d.mts +0 -9
  62. package/dist/vite.mjs +0 -11
  63. package/dist/webpack.cjs +0 -13
  64. package/dist/webpack.d.cts +0 -9
  65. package/dist/webpack.d.mts +0 -9
  66. package/dist/webpack.mjs +0 -11
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import * as unplugin from 'unplugin';
2
- import { Options } from './types.cjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: unplugin.UnpluginInstance<Options | undefined, boolean>;
8
-
9
- export { _default as default };
package/dist/index.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import * as unplugin from 'unplugin';
2
- import { Options } from './types.mjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: unplugin.UnpluginInstance<Options | undefined, boolean>;
8
-
9
- export { _default as default };
package/dist/index.mjs DELETED
@@ -1,231 +0,0 @@
1
- import { createFilter } from '@vue.ts/common';
2
- import { getLanguage, ensureLanguage } from '@vue.ts/language';
3
- import { createUnplugin } from 'unplugin';
4
- import MagicString from 'magic-string';
5
- import ts from 'typescript';
6
- import { join } from 'node:path';
7
-
8
- const resolveOptions = (rawOptions) => ({
9
- include: rawOptions.include ?? ["**/*.vue"],
10
- exclude: rawOptions.exclude ?? ["node_modules/**"],
11
- tsconfigPath: rawOptions.tsconfigPath ?? join(process.cwd(), "tsconfig.json"),
12
- defineEmits: rawOptions.defineEmits ?? true,
13
- defineProps: rawOptions.defineProps ?? true
14
- });
15
- const quotesReg = /"/g;
16
- const escapeQuotes = (s) => s.replace(quotesReg, '\\"');
17
-
18
- class Printer {
19
- constructor(checker) {
20
- this.checker = checker;
21
- }
22
- getBaseType(nodeOrType) {
23
- if ("kind" in nodeOrType) {
24
- nodeOrType = this.checker.getTypeAtLocation(nodeOrType);
25
- }
26
- return this.checker.getBaseConstraintOfType(nodeOrType) ?? this.checker.getBaseTypeOfLiteralType(nodeOrType);
27
- }
28
- printIntersectionTypeNode(node) {
29
- return node.types.map((t) => this.printTypeArg(t)).join(" & ");
30
- }
31
- printUnionTypeNode(node) {
32
- return node.types.map((t) => this.printTypeArg(t)).join(" | ");
33
- }
34
- printTypeLiteralNode(node) {
35
- const parts = ["{"];
36
- for (const member of node.members) {
37
- if (ts.isPropertySignature(member)) {
38
- const stringBaseType = member.type ? this.checker.typeToString(
39
- this.getBaseType(member.type),
40
- void 0,
41
- ts.TypeFormatFlags.NoTruncation
42
- ) : "any";
43
- parts.push(
44
- [
45
- member.name.getText(),
46
- member.questionToken?.getText(),
47
- ": ",
48
- stringBaseType
49
- ].filter(Boolean).join("")
50
- );
51
- }
52
- }
53
- parts.push("}");
54
- return parts.join("\n");
55
- }
56
- printByType(node) {
57
- const type = this.checker.getTypeAtLocation(node);
58
- const properties = type.getProperties();
59
- const parts = ["{"];
60
- let questionToken = "";
61
- if (ts.isMappedTypeNode(node)) {
62
- questionToken = node.questionToken?.getText() ?? "";
63
- }
64
- for (const property of properties) {
65
- const valueType = this.checker.getTypeOfSymbol(property);
66
- const stringValueType = this.checker.typeToString(
67
- this.getBaseType(valueType),
68
- void 0,
69
- ts.TypeFormatFlags.NoTruncation
70
- );
71
- parts.push(
72
- `${this.checker.symbolToString(
73
- property
74
- )}${questionToken}: ${stringValueType}`
75
- );
76
- }
77
- parts.push("}");
78
- return parts.join("\n");
79
- }
80
- printTypeArg(node) {
81
- if (ts.isIntersectionTypeNode(node)) {
82
- return this.printIntersectionTypeNode(node);
83
- } else if (ts.isUnionTypeNode(node)) {
84
- return this.printUnionTypeNode(node);
85
- } else if (ts.isTypeLiteralNode(node)) {
86
- return this.printTypeLiteralNode(node);
87
- } else if (ts.isMappedTypeNode(node) || ts.isTypeReferenceNode(node)) {
88
- return this.printByType(node);
89
- } else {
90
- console.error(
91
- `[@vue.ts/complex-types] \`${ts.SyntaxKind[node.kind]}\` is not supported.`
92
- );
93
- return node.getText();
94
- }
95
- }
96
- printEventsByCallSignatures(callSignatures) {
97
- return callSignatures.map((c) => {
98
- const parameters = c.getParameters();
99
- const event = parameters[0];
100
- return this.checker.typeToString(
101
- this.checker.getTypeOfSymbol(event),
102
- void 0,
103
- ts.TypeFormatFlags.NoTruncation
104
- );
105
- });
106
- }
107
- printEventsByMembers(members) {
108
- return members.map((m) => `"${escapeQuotes(m.getName())}"`);
109
- }
110
- printEventsRuntimeArg(node) {
111
- const parts = [];
112
- const type = this.checker.getTypeAtLocation(node);
113
- const callSignatures = type.getCallSignatures();
114
- const members = type.getProperties();
115
- if (callSignatures.length > 0 && members.length > 0) {
116
- throw new Error(
117
- "[@vue.ts/complex-types] You may not use old style `defineEmits` and `defineEmits` shorthand together."
118
- );
119
- }
120
- if (members.length > 0) {
121
- parts.push(...this.printEventsByMembers(members));
122
- } else {
123
- parts.push(...this.printEventsByCallSignatures(callSignatures));
124
- }
125
- return `[${parts.join(", ")}]`;
126
- }
127
- }
128
-
129
- const transformDefineEmits = (printer, s, id) => {
130
- const language = getLanguage();
131
- const defineEmits = language.findNodeByRange(
132
- id,
133
- (scriptSetupRanges) => scriptSetupRanges.emits.define
134
- );
135
- if (!defineEmits) {
136
- return;
137
- }
138
- const scriptSetupAst = language.getScriptSetupAst(id);
139
- const {
140
- scriptNode: defineEmitsNode,
141
- virtualFileNode: virtualFileDefineEmitsNode,
142
- offset
143
- } = defineEmits;
144
- const defineEmitsTypeArg = ts.isCallExpression(virtualFileDefineEmitsNode) && virtualFileDefineEmitsNode.typeArguments?.[0];
145
- const defineEmitsRuntimeArg = ts.isCallExpression(virtualFileDefineEmitsNode) && virtualFileDefineEmitsNode.arguments[0];
146
- if (!defineEmitsTypeArg) {
147
- return;
148
- }
149
- if (defineEmitsRuntimeArg) {
150
- throw new Error(
151
- "[@vue.ts/complex-types] `defineEmits` cannot accept both runtime argument and type argument."
152
- );
153
- }
154
- const tokens = defineEmitsNode.getChildren(scriptSetupAst);
155
- const lessThanToken = tokens.find(
156
- (t) => t.kind === ts.SyntaxKind.LessThanToken
157
- );
158
- const greaterThanToken = tokens.find(
159
- (t) => t.kind === ts.SyntaxKind.GreaterThanToken
160
- );
161
- const openParenToken = tokens.find(
162
- (t) => t.kind === ts.SyntaxKind.OpenParenToken
163
- );
164
- if (!lessThanToken || !greaterThanToken || !openParenToken) {
165
- return;
166
- }
167
- const defineEmitsTypeArgRange = [
168
- offset + lessThanToken.pos,
169
- offset + greaterThanToken.end
170
- ];
171
- const runtimeArgPos = offset + openParenToken.end;
172
- const printedRuntimeArg = printer.printEventsRuntimeArg(defineEmitsTypeArg);
173
- s.remove(...defineEmitsTypeArgRange);
174
- s.appendRight(runtimeArgPos, printedRuntimeArg);
175
- };
176
-
177
- const transformDefineProps = (printer, s, id) => {
178
- const language = getLanguage();
179
- const definePropsTypeArg = language.findNodeByRange(
180
- id,
181
- (scriptSetupRanges) => scriptSetupRanges.props.define?.typeArg
182
- );
183
- if (!definePropsTypeArg) {
184
- return;
185
- }
186
- const { virtualFileNode: typeArgNode, setupRange: typeArgRange } = definePropsTypeArg;
187
- const printedType = printer.printTypeArg(typeArgNode);
188
- s.overwrite(typeArgRange.start, typeArgRange.end, printedType);
189
- };
190
-
191
- const transformers = [
192
- ["defineEmits", transformDefineEmits],
193
- ["defineProps", transformDefineProps]
194
- ];
195
- const getTransformers = (options) => transformers.filter(([key]) => !!options[key]);
196
-
197
- function transform(code, id, options) {
198
- const s = new MagicString(code);
199
- const language = getLanguage();
200
- const typeChecker = language.__internal__.typeChecker;
201
- const printer = new Printer(typeChecker);
202
- const transformers = getTransformers(options);
203
- for (const [, transform2] of transformers) {
204
- transform2(printer, s, id);
205
- }
206
- return {
207
- code: s.toString(),
208
- map: s.generateMap({ hires: true })
209
- };
210
- }
211
-
212
- const unplugin = createUnplugin((options = {}) => ({
213
- name: "@vue.ts/complex-types",
214
- buildStart() {
215
- const resolvedOptions = resolveOptions(options);
216
- ensureLanguage(resolvedOptions.tsconfigPath);
217
- },
218
- transform(code, id) {
219
- const resolvedOptions = resolveOptions(options);
220
- const filter = createFilter(
221
- resolvedOptions.include,
222
- resolvedOptions.exclude
223
- );
224
- if (!filter(id)) {
225
- return;
226
- }
227
- return transform(code, id, resolvedOptions);
228
- }
229
- }));
230
-
231
- export { unplugin as default };
package/dist/nuxt.cjs DELETED
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- const kit = require('@nuxt/kit');
4
- const vite = require('./vite.cjs');
5
- const webpack = require('./webpack.cjs');
6
- require('./index.cjs');
7
- require('@vue.ts/common');
8
- require('@vue.ts/language');
9
- require('unplugin');
10
- require('magic-string');
11
- require('typescript');
12
- require('node:path');
13
-
14
- const name = "@vue.ts/complex-types";
15
- const version = "0.6.0";
16
-
17
- const nuxt = kit.defineNuxtModule({
18
- meta: {
19
- name,
20
- version,
21
- configKey: "complexTypes",
22
- compatibility: {
23
- bridge: true
24
- }
25
- },
26
- defaults: {
27
- tsconfigPath: "tsconfig.json"
28
- },
29
- setup(options) {
30
- kit.addVitePlugin(vite(options));
31
- kit.addWebpackPlugin(webpack(options));
32
- }
33
- });
34
-
35
- module.exports = nuxt;
package/dist/nuxt.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import { ModuleDefinition } from '@nuxt/schema';
2
- import { Options } from './types.cjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: ModuleDefinition<Options>;
8
-
9
- export { _default as default };
package/dist/nuxt.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import { ModuleDefinition } from '@nuxt/schema';
2
- import { Options } from './types.mjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: ModuleDefinition<Options>;
8
-
9
- export { _default as default };
package/dist/nuxt.mjs DELETED
@@ -1,33 +0,0 @@
1
- import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
2
- import VitePlugin from './vite.mjs';
3
- import WebpackPlugin from './webpack.mjs';
4
- import './index.mjs';
5
- import '@vue.ts/common';
6
- import '@vue.ts/language';
7
- import 'unplugin';
8
- import 'magic-string';
9
- import 'typescript';
10
- import 'node:path';
11
-
12
- const name = "@vue.ts/complex-types";
13
- const version = "0.6.0";
14
-
15
- const nuxt = defineNuxtModule({
16
- meta: {
17
- name,
18
- version,
19
- configKey: "complexTypes",
20
- compatibility: {
21
- bridge: true
22
- }
23
- },
24
- defaults: {
25
- tsconfigPath: "tsconfig.json"
26
- },
27
- setup(options) {
28
- addVitePlugin(VitePlugin(options));
29
- addWebpackPlugin(WebpackPlugin(options));
30
- }
31
- });
32
-
33
- export { nuxt as default };
package/dist/rollup.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index.cjs');
4
- require('@vue.ts/common');
5
- require('@vue.ts/language');
6
- require('unplugin');
7
- require('magic-string');
8
- require('typescript');
9
- require('node:path');
10
-
11
- const rollup = index.rollup;
12
-
13
- module.exports = rollup;
package/dist/rollup.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import * as rollup from 'rollup';
2
- import { Options } from './types.cjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
8
-
9
- export { _default as default };
package/dist/rollup.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import * as rollup from 'rollup';
2
- import { Options } from './types.mjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
8
-
9
- export { _default as default };
package/dist/rollup.mjs DELETED
@@ -1,11 +0,0 @@
1
- import unplugin from './index.mjs';
2
- import '@vue.ts/common';
3
- import '@vue.ts/language';
4
- import 'unplugin';
5
- import 'magic-string';
6
- import 'typescript';
7
- import 'node:path';
8
-
9
- const rollup = unplugin.rollup;
10
-
11
- export { rollup as default };
package/dist/rspack.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index.cjs');
4
- require('@vue.ts/common');
5
- require('@vue.ts/language');
6
- require('unplugin');
7
- require('magic-string');
8
- require('typescript');
9
- require('node:path');
10
-
11
- const rspack = index.rspack;
12
-
13
- module.exports = rspack;
package/dist/rspack.d.cts DELETED
@@ -1,8 +0,0 @@
1
- import { Options } from './types.cjs';
2
- import '@vue.ts/common';
3
- import 'magic-string';
4
- import 'typescript';
5
-
6
- declare const _default: (options?: Options | undefined) => RspackPluginInstance;
7
-
8
- export { _default as default };
package/dist/rspack.d.mts DELETED
@@ -1,8 +0,0 @@
1
- import { Options } from './types.mjs';
2
- import '@vue.ts/common';
3
- import 'magic-string';
4
- import 'typescript';
5
-
6
- declare const _default: (options?: Options | undefined) => RspackPluginInstance;
7
-
8
- export { _default as default };
package/dist/rspack.mjs DELETED
@@ -1,11 +0,0 @@
1
- import unplugin from './index.mjs';
2
- import '@vue.ts/common';
3
- import '@vue.ts/language';
4
- import 'unplugin';
5
- import 'magic-string';
6
- import 'typescript';
7
- import 'node:path';
8
-
9
- const rspack = unplugin.rspack;
10
-
11
- export { rspack as default };
package/dist/types.cjs DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
package/dist/types.d.cts DELETED
@@ -1,30 +0,0 @@
1
- import { BaseOptions } from '@vue.ts/common';
2
- import MagicString from 'magic-string';
3
- import ts from 'typescript';
4
-
5
- declare class Printer {
6
- private checker;
7
- constructor(checker: ts.TypeChecker);
8
- private getBaseType;
9
- private printIntersectionTypeNode;
10
- private printUnionTypeNode;
11
- private printTypeLiteralNode;
12
- private printByType;
13
- printTypeArg(node: ts.Node): string;
14
- private printEventsByCallSignatures;
15
- private printEventsByMembers;
16
- printEventsRuntimeArg(node: ts.Node): string;
17
- }
18
-
19
- type ValidTransforms = "defineEmits" | "defineProps";
20
- type Options = {
21
- tsconfigPath?: string;
22
- } & {
23
- [Transform in ValidTransforms]?: boolean;
24
- } & BaseOptions;
25
- type ResolvedOptions = Required<Options>;
26
- type TransformOptions = Pick<ResolvedOptions, ValidTransforms>;
27
- type Transformer = (printer: Printer, s: MagicString, id: string) => void;
28
- type Transformers = [ValidTransforms, Transformer][];
29
-
30
- export type { Options, ResolvedOptions, TransformOptions, Transformer, Transformers, ValidTransforms };
package/dist/types.d.mts DELETED
@@ -1,30 +0,0 @@
1
- import { BaseOptions } from '@vue.ts/common';
2
- import MagicString from 'magic-string';
3
- import ts from 'typescript';
4
-
5
- declare class Printer {
6
- private checker;
7
- constructor(checker: ts.TypeChecker);
8
- private getBaseType;
9
- private printIntersectionTypeNode;
10
- private printUnionTypeNode;
11
- private printTypeLiteralNode;
12
- private printByType;
13
- printTypeArg(node: ts.Node): string;
14
- private printEventsByCallSignatures;
15
- private printEventsByMembers;
16
- printEventsRuntimeArg(node: ts.Node): string;
17
- }
18
-
19
- type ValidTransforms = "defineEmits" | "defineProps";
20
- type Options = {
21
- tsconfigPath?: string;
22
- } & {
23
- [Transform in ValidTransforms]?: boolean;
24
- } & BaseOptions;
25
- type ResolvedOptions = Required<Options>;
26
- type TransformOptions = Pick<ResolvedOptions, ValidTransforms>;
27
- type Transformer = (printer: Printer, s: MagicString, id: string) => void;
28
- type Transformers = [ValidTransforms, Transformer][];
29
-
30
- export type { Options, ResolvedOptions, TransformOptions, Transformer, Transformers, ValidTransforms };
package/dist/types.mjs DELETED
@@ -1 +0,0 @@
1
-
package/dist/vite.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index.cjs');
4
- require('@vue.ts/common');
5
- require('@vue.ts/language');
6
- require('unplugin');
7
- require('magic-string');
8
- require('typescript');
9
- require('node:path');
10
-
11
- const VitePlugin = index.vite;
12
-
13
- module.exports = VitePlugin;
package/dist/vite.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import * as vite from 'vite';
2
- import { Options } from './types.cjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
8
-
9
- export { _default as default };
package/dist/vite.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import * as vite from 'vite';
2
- import { Options } from './types.mjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
8
-
9
- export { _default as default };
package/dist/vite.mjs DELETED
@@ -1,11 +0,0 @@
1
- import unplugin from './index.mjs';
2
- import '@vue.ts/common';
3
- import '@vue.ts/language';
4
- import 'unplugin';
5
- import 'magic-string';
6
- import 'typescript';
7
- import 'node:path';
8
-
9
- const VitePlugin = unplugin.vite;
10
-
11
- export { VitePlugin as default };
package/dist/webpack.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index.cjs');
4
- require('@vue.ts/common');
5
- require('@vue.ts/language');
6
- require('unplugin');
7
- require('magic-string');
8
- require('typescript');
9
- require('node:path');
10
-
11
- const WebpackPlugin = index.webpack;
12
-
13
- module.exports = WebpackPlugin;
@@ -1,9 +0,0 @@
1
- import { WebpackPluginInstance } from 'unplugin';
2
- import { Options } from './types.cjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options: Options) => WebpackPluginInstance;
8
-
9
- export { _default as default };
@@ -1,9 +0,0 @@
1
- import { WebpackPluginInstance } from 'unplugin';
2
- import { Options } from './types.mjs';
3
- import '@vue.ts/common';
4
- import 'magic-string';
5
- import 'typescript';
6
-
7
- declare const _default: (options: Options) => WebpackPluginInstance;
8
-
9
- export { _default as default };
package/dist/webpack.mjs DELETED
@@ -1,11 +0,0 @@
1
- import unplugin from './index.mjs';
2
- import '@vue.ts/common';
3
- import '@vue.ts/language';
4
- import 'unplugin';
5
- import 'magic-string';
6
- import 'typescript';
7
- import 'node:path';
8
-
9
- const WebpackPlugin = unplugin.webpack;
10
-
11
- export { WebpackPlugin as default };