diff --git a/packages/compiler-sfc/package.json b/packages/compiler-sfc/package.json index b1f34a6b0..d2b01fc5d 100644 --- a/packages/compiler-sfc/package.json +++ b/packages/compiler-sfc/package.json @@ -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" } } diff --git a/packages/compiler-sfc/src/compileTemplate.ts b/packages/compiler-sfc/src/compileTemplate.ts index fb5fa9ae1..ebc6f6c6f 100644 --- a/packages/compiler-sfc/src/compileTemplate.ts +++ b/packages/compiler-sfc/src/compileTemplate.ts @@ -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}`, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4041a8b1a..c7a00de93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: diff --git a/test/unit/features/options/functional.spec.ts b/test/unit/features/options/functional.spec.ts index bd1d30056..c26930b20 100644 --- a/test/unit/features/options/functional.spec.ts +++ b/test/unit/features/options/functional.spec.ts @@ -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(