@vue.ts/tsx-auto-props 1.0.0-beta.7 → 1.0.0-beta.9

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/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./src-DlmMN188.js";
2
- import { t as vite_default } from "./vite-DECxELtC.js";
1
+ import "./src-BFs68S7G.js";
2
+ import { t as vite_default } from "./vite-CATV9aA1.js";
3
3
 
4
4
  //#region src/astro.ts
5
5
  var astro_default = (options) => ({
package/dist/esbuild.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as esbuild0 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/esbuild.ts
package/dist/farm.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as _farmfe_core0 from "@farmfe/core";
3
3
 
4
4
  //#region src/farm.d.ts
package/dist/farm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
 
4
4
  //#region src/farm.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as unplugin0 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-DlmMN188.js";
1
+ import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-BFs68S7G.js";
2
2
 
3
3
  export { src_default as default, unplugin, unpluginFactory };
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./src-DlmMN188.js";
2
- import { t as vite_default } from "./vite-DECxELtC.js";
3
- import { t as webpack_default } from "./webpack-D-mIcI2n.js";
1
+ import "./src-BFs68S7G.js";
2
+ import { t as vite_default } from "./vite-CATV9aA1.js";
3
+ import { t as webpack_default } from "./webpack-CijzWvZk.js";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
5
5
 
6
6
  //#region src/nuxt.ts
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as rolldown0 from "rolldown";
3
3
 
4
4
  //#region src/rolldown.d.ts
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createRolldownPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rolldown.ts
package/dist/rollup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as rollup0 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rollup.ts
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rspack.ts
@@ -1,6 +1,6 @@
1
1
  import { createUnplugin } from "unplugin";
2
2
  import { ensureLanguage, getLanguage } from "@vue.ts/language";
3
- import { createFilter, normalizePath } from "@vue.ts/shared";
3
+ import { normalizePath } from "@vue.ts/shared";
4
4
  import MagicString from "magic-string";
5
5
  import ts from "typescript";
6
6
  import { join } from "node:path";
@@ -75,16 +75,18 @@ function transform(code, id) {
75
75
  //#region src/index.ts
76
76
  const unpluginFactory = (options = {}) => {
77
77
  const resolvedOptions = resolveOptions(options);
78
- const filter = createFilter(resolvedOptions.include, resolvedOptions.exclude);
79
78
  return {
80
79
  name: "@vue.ts/tsx-auto-props",
81
80
  enforce: "pre",
82
81
  buildStart() {
83
82
  ensureLanguage(resolveOptions(options).tsconfigPath);
84
83
  },
85
- transform(code, id) {
86
- if (!filter(id)) return;
87
- return transform(code, id);
84
+ transform: {
85
+ filter: { id: {
86
+ include: resolvedOptions.include,
87
+ exclude: resolvedOptions.exclude
88
+ } },
89
+ handler: transform
88
90
  }
89
91
  };
90
92
  };
@@ -1,4 +1,4 @@
1
- import { FilterPattern } from "@rollup/pluginutils";
1
+ import { FilterPattern } from "unplugin";
2
2
 
3
3
  //#region ../shared/src/types.d.ts
4
4
  interface BaseOptions {
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as ResolvedOptions, t as Options } from "./types-B166_Ghm.js";
1
+ import { n as ResolvedOptions, t as Options } from "./types-oYPns0rA.js";
2
2
  export { Options, ResolvedOptions };
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/vite.ts
package/dist/vite.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as vite0 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-DlmMN188.js";
2
- import { t as vite_default } from "./vite-DECxELtC.js";
1
+ import "./src-BFs68S7G.js";
2
+ import { t as vite_default } from "./vite-CATV9aA1.js";
3
3
 
4
4
  export { vite_default as default };
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-DlmMN188.js";
1
+ import { r as unpluginFactory } from "./src-BFs68S7G.js";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/webpack.ts
package/dist/webpack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-B166_Ghm.js";
1
+ import { t as Options } from "./types-oYPns0rA.js";
2
2
  import * as webpack0 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
package/dist/webpack.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-DlmMN188.js";
2
- import { t as webpack_default } from "./webpack-D-mIcI2n.js";
1
+ import "./src-BFs68S7G.js";
2
+ import { t as webpack_default } from "./webpack-CijzWvZk.js";
3
3
 
4
4
  export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue.ts/tsx-auto-props",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.9",
4
4
  "author": "Ray <i@mk1.io> (@so1ve)",
5
5
  "type": "module",
6
6
  "description": "Automatically add props definition for Vue 3 TSX.",
@@ -64,15 +64,15 @@
64
64
  "dependencies": {
65
65
  "@nuxt/kit": "^4.2.0",
66
66
  "magic-string": "^0.30.21",
67
- "unplugin": "^2.3.10",
68
- "@vue.ts/language": "1.0.0-beta.7",
69
- "@vue.ts/shared": "1.0.0-beta.7"
67
+ "unplugin": "2.3.10",
68
+ "@vue.ts/language": "1.0.0-beta.9",
69
+ "@vue.ts/shared": "1.0.0-beta.9"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@nuxt/schema": "^4.2.0",
73
- "rolldown": "1.0.0-beta.27",
73
+ "rolldown": "1.0.0-beta.45",
74
74
  "rollup": "^4.52.5",
75
- "vite": "^7.1.12",
75
+ "vite": "7.1.12",
76
76
  "webpack": "^5.102.1"
77
77
  },
78
78
  "peerDependencies": {
@@ -1,24 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
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
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
- value: mod,
20
- enumerable: true
21
- }) : target, mod));
22
-
23
- //#endregion
24
- export { };