@vue/compiler-core
Advanced tools
Comparing version 3.4.21 to 3.4.22
import { Node as Node$1, Identifier, Function, BlockStatement as BlockStatement$1, Program, ObjectProperty } from '@babel/types'; | ||
import { ParserPlugin } from '@babel/parser'; | ||
import { RawSourceMap, SourceMapGenerator } from 'source-map-js'; | ||
export { generateCodeFrame } from '@vue/shared'; | ||
@@ -673,2 +672,3 @@ | ||
* Whitespace handling strategy | ||
* @default 'condense' | ||
*/ | ||
@@ -928,2 +928,37 @@ whitespace?: 'preserve' | 'condense'; | ||
/** | ||
* The `SourceMapGenerator` type from `source-map-js` is a bit incomplete as it | ||
* misses `toJSON()`. We also need to add types for internal properties which we | ||
* need to access for better performance. | ||
* | ||
* Since TS 5.3, dts generation starts to strangely include broken triple slash | ||
* references for source-map-js, so we are inlining all source map related types | ||
* here to to workaround that. | ||
*/ | ||
export interface CodegenSourceMapGenerator { | ||
setSourceContent(sourceFile: string, sourceContent: string): void; | ||
toJSON(): RawSourceMap; | ||
_sources: Set<string>; | ||
_names: Set<string>; | ||
_mappings: { | ||
add(mapping: MappingItem): void; | ||
}; | ||
} | ||
export interface RawSourceMap { | ||
file?: string; | ||
sourceRoot?: string; | ||
version: string; | ||
sources: string[]; | ||
names: string[]; | ||
sourcesContent?: string[]; | ||
mappings: string; | ||
} | ||
interface MappingItem { | ||
source: string; | ||
generatedLine: number; | ||
generatedColumn: number; | ||
originalLine: number; | ||
originalColumn: number; | ||
name: string | null; | ||
} | ||
type CodegenNode = TemplateChildNode | JSChildNode | SSRCodegenNode; | ||
@@ -944,3 +979,3 @@ export interface CodegenResult { | ||
pure: boolean; | ||
map?: SourceMapGenerator; | ||
map?: CodegenSourceMapGenerator; | ||
helper(key: symbol): string; | ||
@@ -947,0 +982,0 @@ push(code: string, newlineIndex?: number, node?: CodegenNode): void; |
{ | ||
"name": "@vue/compiler-core", | ||
"version": "3.4.21", | ||
"version": "3.4.22", | ||
"description": "@vue/compiler-core", | ||
@@ -49,11 +49,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"@babel/parser": "^7.23.9", | ||
"@babel/parser": "^7.24.1", | ||
"entities": "^4.5.0", | ||
"estree-walker": "^2.0.2", | ||
"source-map-js": "^1.0.2", | ||
"@vue/shared": "3.4.21" | ||
"source-map-js": "^1.2.0", | ||
"@vue/shared": "3.4.22" | ||
}, | ||
"devDependencies": { | ||
"@babel/types": "^7.23.9" | ||
"@babel/types": "^7.24.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
604409
19848
+ Added@vue/shared@3.4.22(transitive)
- Removed@vue/shared@3.4.21(transitive)
Updated@babel/parser@^7.24.1
Updated@vue/shared@3.4.22
Updatedsource-map-js@^1.2.0