mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
chore: bump build deps
This commit is contained in:
parent
e1342df784
commit
cc14d4452c
@ -117,15 +117,15 @@
|
|||||||
"prettier": "^2.6.2",
|
"prettier": "^2.6.2",
|
||||||
"puppeteer": "^14.3.0",
|
"puppeteer": "^14.3.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "^2.75.6",
|
"rollup": "^2.79.1",
|
||||||
"rollup-plugin-typescript2": "^0.31.2",
|
"rollup-plugin-typescript2": "^0.32.0",
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
"shelljs": "^0.8.5",
|
"shelljs": "^0.8.5",
|
||||||
"terser": "^5.14.0",
|
"terser": "^5.14.0",
|
||||||
"todomvc-app-css": "^2.4.2",
|
"todomvc-app-css": "^2.4.2",
|
||||||
"ts-node": "^10.8.1",
|
"ts-node": "^10.8.1",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"typescript": "^4.7.3",
|
"typescript": "^4.8.4",
|
||||||
"vitest": "^0.12.10",
|
"vitest": "^0.12.10",
|
||||||
"yorkie": "^2.0.0"
|
"yorkie": "^2.0.0"
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"source-map": "^0.6.1"
|
"source-map": "^0.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/types": "^7.18.4",
|
"@babel/types": "^7.19.4",
|
||||||
"@types/estree": "^0.0.48",
|
"@types/estree": "^0.0.48",
|
||||||
"@types/hash-sum": "^1.0.0",
|
"@types/hash-sum": "^1.0.0",
|
||||||
"@types/lru-cache": "^5.1.1",
|
"@types/lru-cache": "^5.1.1",
|
||||||
|
@ -780,7 +780,7 @@ export function compileScript(
|
|||||||
if (node.trailingComments && node.trailingComments.length > 0) {
|
if (node.trailingComments && node.trailingComments.length > 0) {
|
||||||
const lastCommentNode =
|
const lastCommentNode =
|
||||||
node.trailingComments[node.trailingComments.length - 1]
|
node.trailingComments[node.trailingComments.length - 1]
|
||||||
end = lastCommentNode.end + startOffset
|
end = lastCommentNode.end! + startOffset
|
||||||
}
|
}
|
||||||
// locate the end of whitespace between this statement and the next
|
// locate the end of whitespace between this statement and the next
|
||||||
while (end <= source.length) {
|
while (end <= source.length) {
|
||||||
@ -1582,14 +1582,18 @@ function extractEventNames(
|
|||||||
) {
|
) {
|
||||||
const typeNode = eventName.typeAnnotation.typeAnnotation
|
const typeNode = eventName.typeAnnotation.typeAnnotation
|
||||||
if (typeNode.type === 'TSLiteralType') {
|
if (typeNode.type === 'TSLiteralType') {
|
||||||
if (typeNode.literal.type !== 'UnaryExpression') {
|
if (
|
||||||
|
typeNode.literal.type !== 'UnaryExpression' &&
|
||||||
|
typeNode.literal.type !== 'TemplateLiteral'
|
||||||
|
) {
|
||||||
emits.add(String(typeNode.literal.value))
|
emits.add(String(typeNode.literal.value))
|
||||||
}
|
}
|
||||||
} else if (typeNode.type === 'TSUnionType') {
|
} else if (typeNode.type === 'TSUnionType') {
|
||||||
for (const t of typeNode.types) {
|
for (const t of typeNode.types) {
|
||||||
if (
|
if (
|
||||||
t.type === 'TSLiteralType' &&
|
t.type === 'TSLiteralType' &&
|
||||||
t.literal.type !== 'UnaryExpression'
|
t.literal.type !== 'UnaryExpression' &&
|
||||||
|
t.literal.type !== 'TemplateLiteral'
|
||||||
) {
|
) {
|
||||||
emits.add(String(t.literal.value))
|
emits.add(String(t.literal.value))
|
||||||
}
|
}
|
||||||
|
1086
pnpm-lock.yaml
1086
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -227,6 +227,9 @@ const builds = {
|
|||||||
|
|
||||||
function genConfig(name) {
|
function genConfig(name) {
|
||||||
const opts = builds[name]
|
const opts = builds[name]
|
||||||
|
const isTargetingBrowser = !(
|
||||||
|
opts.transpile === false || opts.format === 'cjs'
|
||||||
|
)
|
||||||
|
|
||||||
// console.log('__dir', __dirname)
|
// console.log('__dir', __dirname)
|
||||||
const config = {
|
const config = {
|
||||||
@ -243,11 +246,9 @@ function genConfig(name) {
|
|||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
// if targeting browser, target es5
|
// if targeting browser, target es5
|
||||||
// if targeting node, es2017 means Node 8
|
// if targeting node, es2017 means Node 8
|
||||||
target:
|
target: isTargetingBrowser ? 'es5' : 'es2017'
|
||||||
opts.transpile === false || opts.format === 'cjs'
|
|
||||||
? 'es2017'
|
|
||||||
: 'es5'
|
|
||||||
},
|
},
|
||||||
|
include: isTargetingBrowser ? ['src'] : ['src', 'packages/*/src'],
|
||||||
exclude: ['test', 'test-dts']
|
exclude: ['test', 'test-dts']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user