mirror of https://github.com/vuejs/vue.git
remove custom modules and use the typescript ones
This commit is contained in:
parent
52d3a7c773
commit
f036db5dd4
|
|
@ -154,5 +154,8 @@
|
|||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/he": "^1.1.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
// const he = require('he')
|
||||
import he from 'he'
|
||||
import { parseHTML } from './html-parser'
|
||||
import { parseText } from './text-parser'
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ export function parseComponent(
|
|||
currentBlock.end = start
|
||||
let text = content.slice(currentBlock.start, currentBlock.end)
|
||||
if (options.deindent !== false) {
|
||||
//@ts-expect-error
|
||||
text = deindent(text)
|
||||
}
|
||||
// pad content so that linters and pre-processors can output correct
|
||||
|
|
|
|||
|
|
@ -1,45 +1,3 @@
|
|||
declare module 'he' {
|
||||
function escape(html: string): string
|
||||
function decode(html: string): string
|
||||
}
|
||||
|
||||
declare module 'source-map' {
|
||||
class SourceMapGenerator {
|
||||
setSourceContent(filename: string, content: string): void
|
||||
addMapping(mapping: Object): void
|
||||
toString(): string
|
||||
}
|
||||
class SourceMapConsumer {
|
||||
constructor(map: Object)
|
||||
originalPositionFor(position: {
|
||||
line: number
|
||||
column: number
|
||||
}): {
|
||||
source: string | null
|
||||
line: number | null
|
||||
column: number | null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'lru-cache' {
|
||||
var exports: {
|
||||
(): any
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'de-indent' {
|
||||
export default function deindent (input: string): string
|
||||
}
|
||||
|
||||
declare module 'serialize-javascript' {
|
||||
var exports: {
|
||||
(input: string, options: { isJSON: boolean }): string
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'lodash.template' {
|
||||
var exports: {
|
||||
(input: string, options: { interpolate: RegExp; escape: RegExp }): Function
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1104,6 +1104,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
|
||||
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
|
||||
|
||||
"@types/he@^1.1.1":
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/he/-/he-1.1.1.tgz#19e14033c4ee8f1a702c74dcc6182664839ac2b7"
|
||||
integrity sha512-jpzrsR1ns0n3kyWt92QfOUQhIuJGQ9+QGa7M62rO6toe98woQjnsnzjdMtsQXCdvjjmqjS2ZBCC7xKw0cdzU+Q==
|
||||
|
||||
"@types/json-schema@^7.0.3":
|
||||
version "7.0.7"
|
||||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
|
||||
|
|
|
|||
Loading…
Reference in New Issue