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!)
|
const consumer = new SourceMapConsumer(script!.map!)
|
||||||
consumer.eachMapping(mapping => {
|
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!)
|
const consumer = new SourceMapConsumer(template.map!)
|
||||||
consumer.eachMapping(mapping => {
|
consumer.eachMapping(mapping => {
|
||||||
expect(mapping.originalLine - mapping.generatedLine).toBe(padding)
|
expect(mapping.originalLine! - mapping.generatedLine).toBe(padding)
|
||||||
expect(mapping.originalColumn - mapping.generatedColumn).toBe(2)
|
expect(mapping.originalColumn! - mapping.generatedColumn).toBe(2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ font-weight: bold;
|
||||||
|
|
||||||
const consumer = new SourceMapConsumer(custom!.map!)
|
const consumer = new SourceMapConsumer(custom!.map!)
|
||||||
consumer.eachMapping(mapping => {
|
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({
|
const origPosInOldMap = oldMapConsumer.originalPositionFor({
|
||||||
line: m.originalLine,
|
line: m.originalLine,
|
||||||
column: m.originalColumn,
|
column: m.originalColumn!,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (origPosInOldMap.source == null) {
|
if (origPosInOldMap.source == null) {
|
||||||
|
@ -330,7 +330,7 @@ function mapLines(oldMap: RawSourceMap, newMap: RawSourceMap): RawSourceMap {
|
||||||
line: origPosInOldMap.line, // map line
|
line: origPosInOldMap.line, // map line
|
||||||
// use current column, since the oldMap produced by @vue/compiler-sfc
|
// use current column, since the oldMap produced by @vue/compiler-sfc
|
||||||
// does not
|
// does not
|
||||||
column: m.originalColumn,
|
column: m.originalColumn!,
|
||||||
},
|
},
|
||||||
source: origPosInOldMap.source,
|
source: origPosInOldMap.source,
|
||||||
name: origPosInOldMap.name,
|
name: origPosInOldMap.name,
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
# @vue/compiler-vapor
|
# @vue/compiler-vapor
|
||||||
|
|
||||||
> **Note**
|
|
||||||
> Work in progress. Do not use yet.
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "@vue/compiler-vapor",
|
"name": "@vue/compiler-vapor",
|
||||||
"version": "3.0.0-vapor",
|
"version": "3.5.13",
|
||||||
"description": "@vue/compiler-vapor",
|
"description": "@vue/compiler-vapor",
|
||||||
"main": "index.js",
|
"main": "dist/compiler-vapor.cjs.js",
|
||||||
"module": "dist/compiler-vapor.esm-bundler.js",
|
"module": "dist/compiler-vapor.esm-bundler.js",
|
||||||
"types": "dist/compiler-vapor.d.ts",
|
"types": "dist/compiler-vapor.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -20,7 +20,6 @@
|
||||||
"./*": "./*"
|
"./*": "./*"
|
||||||
},
|
},
|
||||||
"buildOptions": {
|
"buildOptions": {
|
||||||
"name": "VueCompilerVapor",
|
|
||||||
"formats": [
|
"formats": [
|
||||||
"cjs",
|
"cjs",
|
||||||
"esm-browser"
|
"esm-browser"
|
||||||
|
@ -45,6 +44,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-dom": "workspace:*",
|
"@vue/compiler-dom": "workspace:*",
|
||||||
"@vue/shared": "workspace:*",
|
"@vue/shared": "workspace:*",
|
||||||
"source-map-js": "^1.0.2"
|
"source-map-js": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -385,8 +385,8 @@ importers:
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../shared
|
version: link:../shared
|
||||||
source-map-js:
|
source-map-js:
|
||||||
specifier: ^1.0.2
|
specifier: 'catalog:'
|
||||||
version: 1.2.0
|
version: 1.2.1
|
||||||
|
|
||||||
packages/reactivity:
|
packages/reactivity:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -3381,10 +3381,6 @@ packages:
|
||||||
resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==}
|
resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==}
|
||||||
engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
|
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:
|
source-map-js@1.2.1:
|
||||||
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
|
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
@ -6731,8 +6727,6 @@ snapshots:
|
||||||
ip-address: 9.0.5
|
ip-address: 9.0.5
|
||||||
smart-buffer: 4.2.0
|
smart-buffer: 4.2.0
|
||||||
|
|
||||||
source-map-js@1.2.0: {}
|
|
||||||
|
|
||||||
source-map-js@1.2.1: {}
|
source-map-js@1.2.1: {}
|
||||||
|
|
||||||
source-map-support@0.5.21:
|
source-map-support@0.5.21:
|
||||||
|
|
Loading…
Reference in New Issue