chore: update compiler-vapor package.json

This commit is contained in:
Evan You 2025-02-03 14:43:06 +08:00
parent 816cbcc523
commit ddfd83639a
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
5 changed files with 11 additions and 21 deletions

View File

@ -81,7 +81,7 @@ font-weight: bold;
const consumer = new SourceMapConsumer(script!.map!)
consumer.eachMapping(mapping => {
expect(mapping.originalLine - mapping.generatedLine).toBe(padding)
expect(mapping.originalLine! - mapping.generatedLine).toBe(padding)
})
})
@ -100,8 +100,8 @@ font-weight: bold;
const consumer = new SourceMapConsumer(template.map!)
consumer.eachMapping(mapping => {
expect(mapping.originalLine - mapping.generatedLine).toBe(padding)
expect(mapping.originalColumn - mapping.generatedColumn).toBe(2)
expect(mapping.originalLine! - mapping.generatedLine).toBe(padding)
expect(mapping.originalColumn! - mapping.generatedColumn).toBe(2)
})
})
@ -115,7 +115,7 @@ font-weight: bold;
const consumer = new SourceMapConsumer(custom!.map!)
consumer.eachMapping(mapping => {
expect(mapping.originalLine - mapping.generatedLine).toBe(padding)
expect(mapping.originalLine! - mapping.generatedLine).toBe(padding)
})
})
})

View File

@ -314,7 +314,7 @@ function mapLines(oldMap: RawSourceMap, newMap: RawSourceMap): RawSourceMap {
const origPosInOldMap = oldMapConsumer.originalPositionFor({
line: m.originalLine,
column: m.originalColumn,
column: m.originalColumn!,
})
if (origPosInOldMap.source == null) {
@ -330,7 +330,7 @@ function mapLines(oldMap: RawSourceMap, newMap: RawSourceMap): RawSourceMap {
line: origPosInOldMap.line, // map line
// use current column, since the oldMap produced by @vue/compiler-sfc
// does not
column: m.originalColumn,
column: m.originalColumn!,
},
source: origPosInOldMap.source,
name: origPosInOldMap.name,

View File

@ -1,4 +1 @@
# @vue/compiler-vapor
> **Note**
> Work in progress. Do not use yet.

View File

@ -1,8 +1,8 @@
{
"name": "@vue/compiler-vapor",
"version": "3.0.0-vapor",
"version": "3.5.13",
"description": "@vue/compiler-vapor",
"main": "index.js",
"main": "dist/compiler-vapor.cjs.js",
"module": "dist/compiler-vapor.esm-bundler.js",
"types": "dist/compiler-vapor.d.ts",
"files": [
@ -20,7 +20,6 @@
"./*": "./*"
},
"buildOptions": {
"name": "VueCompilerVapor",
"formats": [
"cjs",
"esm-browser"
@ -45,6 +44,6 @@
"dependencies": {
"@vue/compiler-dom": "workspace:*",
"@vue/shared": "workspace:*",
"source-map-js": "^1.0.2"
"source-map-js": "catalog:"
}
}

View File

@ -385,8 +385,8 @@ importers:
specifier: workspace:*
version: link:../shared
source-map-js:
specifier: ^1.0.2
version: 1.2.0
specifier: 'catalog:'
version: 1.2.1
packages/reactivity:
dependencies:
@ -3381,10 +3381,6 @@ packages:
resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==}
engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
source-map-js@1.2.0:
resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
engines: {node: '>=0.10.0'}
source-map-js@1.2.1:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
@ -6731,8 +6727,6 @@ snapshots:
ip-address: 9.0.5
smart-buffer: 4.2.0
source-map-js@1.2.0: {}
source-map-js@1.2.1: {}
source-map-support@0.5.21: