@vue-macros/reactivity-transform
Advanced tools
Comparing version
@@ -10,30 +10,29 @@ import { CodeTransform } from '@vue-macros/common'; | ||
interface RefTransformOptions { | ||
filename?: string; | ||
sourceMap?: boolean; | ||
parserPlugins?: ParserPlugin[]; | ||
importHelpersFrom?: string; | ||
filename?: string; | ||
sourceMap?: boolean; | ||
parserPlugins?: ParserPlugin[]; | ||
importHelpersFrom?: string; | ||
} | ||
interface RefTransformResults { | ||
code: string; | ||
map: SourceMap | null; | ||
rootRefs: string[]; | ||
importedHelpers: string[]; | ||
code: string; | ||
map: SourceMap | null; | ||
rootRefs: string[]; | ||
importedHelpers: string[]; | ||
} | ||
interface ImportBinding { | ||
local: string; | ||
imported: string; | ||
source: string; | ||
specifier: ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier; | ||
local: string; | ||
imported: string; | ||
source: string; | ||
specifier: ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier; | ||
} | ||
declare function transform(src: string, { filename, sourceMap, parserPlugins, importHelpersFrom, }?: RefTransformOptions): RefTransformResults; | ||
declare function transformAST(ast: Program, s: MagicStringAST, offset?: number, knownRefs?: string[], knownProps?: Record<string, // public prop key | ||
{ | ||
local: string; | ||
default?: any; | ||
isConst?: boolean; | ||
declare function transform(src: string, { filename, sourceMap, parserPlugins, importHelpersFrom }?: RefTransformOptions): RefTransformResults; | ||
declare function transformAST(ast: Program, s: MagicStringAST, offset?: number, knownRefs?: string[], knownProps?: Record<string, { | ||
local: string; | ||
default?: any; | ||
isConst?: boolean; | ||
}>): { | ||
rootRefs: string[]; | ||
importedHelpers: string[]; | ||
rootRefs: string[]; | ||
importedHelpers: string[]; | ||
}; | ||
export { type ImportBinding, type RefTransformOptions, type RefTransformResults, shouldTransform, transform, transformAST, transformVueSFC }; |
@@ -5,5 +5,5 @@ import { BaseOptions, MarkRequired } from '@vue-macros/common'; | ||
type Options = BaseOptions; | ||
type OptionsResolved = MarkRequired<Options, 'include' | 'version'>; | ||
type OptionsResolved = MarkRequired<Options, "include" | "version">; | ||
declare const plugin: UnpluginInstance<Options | undefined, false>; | ||
export { type Options, type OptionsResolved, plugin as default }; |
{ | ||
"name": "@vue-macros/reactivity-transform", | ||
"version": "1.1.1", | ||
"description": "reactivity-transform feature from Vue Macros.", | ||
"version": "1.1.2", | ||
"description": "reactivityTransform feature from Vue Macros.", | ||
"type": "module", | ||
@@ -87,8 +87,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/parser": "^7.25.6", | ||
"@vue/compiler-core": "^3.5.4", | ||
"@vue/shared": "^3.5.4", | ||
"magic-string": "^0.30.11", | ||
"@babel/parser": "^7.25.8", | ||
"@vue/compiler-core": "^3.5.12", | ||
"@vue/shared": "^3.5.12", | ||
"magic-string": "^0.30.12", | ||
"unplugin": "^1.14.1", | ||
"@vue-macros/common": "1.14.0" | ||
"@vue-macros/common": "1.15.0" | ||
}, | ||
@@ -95,0 +95,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70521
-0.2%1906
-0.05%+ Added
- Removed
Updated
Updated
Updated
Updated
Updated