Skip to content

Commit

Permalink
chore(sfc): remove useless vue-template-es2015-compiler (#12677)
Browse files Browse the repository at this point in the history
  • Loading branch information
troy351 committed Jul 20, 2022
1 parent fc16281 commit 135d074
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/compiler-sfc/package.json
Expand Up @@ -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"
}
}
3 changes: 1 addition & 2 deletions packages/compiler-sfc/src/compileTemplate.ts
Expand Up @@ -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}`,
Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion test/unit/features/options/functional.spec.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 135d074

Please sign in to comment.