mirror of https://github.com/vuejs/core.git
chore: update compiler-vapor package.json
This commit is contained in:
parent
816cbcc523
commit
ddfd83639a
|
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,4 +1 @@
|
|||
# @vue/compiler-vapor
|
||||
|
||||
> **Note**
|
||||
> Work in progress. Do not use yet.
|
||||
|
|
|
@ -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:"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue