chore(sfc): remove useless vue-template-es2015-compiler (#12677)

This commit is contained in:
troy351 2022-07-20 11:16:01 +08:00 committed by GitHub
parent fc16281cf5
commit 135d07442a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 11 deletions

View File

@ -29,7 +29,6 @@
"postcss-selector-parser": "^6.0.10",
"pug": "^3.0.2",
"sass": "^1.52.3",
"stylus": "^0.58.1",
"vue-template-es2015-compiler": "^1.9.1"
"stylus": "^0.58.1"
}
}

View File

@ -144,8 +144,7 @@ function actuallyCompile(
errors
}
} else {
// transpile code with vue-template-es2015-compiler, which is a forked
// version of Buble that applies ES2015 transforms + stripping `with` usage
// stripping `with` usage
let code =
`var __render__ = ${prefixIdentifiers(
`function render(${isFunctional ? `_c,_vm` : ``}){${render}\n}`,

View File

@ -115,7 +115,6 @@ importers:
sass: ^1.52.3
source-map: ^0.6.1
stylus: ^0.58.1
vue-template-es2015-compiler: ^1.9.1
dependencies:
'@babel/parser': 7.18.4
postcss: 8.4.14
@ -138,7 +137,6 @@ importers:
pug: 3.0.2
sass: 1.52.3
stylus: 0.58.1
vue-template-es2015-compiler: 1.9.1
packages/server-renderer:
specifiers:
@ -6222,10 +6220,6 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
/vue-template-es2015-compiler/1.9.1:
resolution: {integrity: sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==}
dev: true
/w3c-hr-time/1.0.2:
resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}
dependencies:

View File

@ -269,7 +269,6 @@ describe('Options functional', () => {
})
it('should work with render fns compiled from template', done => {
// code generated via vue-template-es2015-compiler
const render = function (_h, _vm) {
const _c = _vm._c
return _c(