From a42a14d3bcc9dc56901ac97f5e7c4bc6ba7d7c48 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 20 Sep 2021 22:06:12 -0400 Subject: [PATCH] types(compiler-sfc): type annotation tweaks + move @babel/types to devDeps --- packages/compiler-sfc/package.json | 2 +- packages/compiler-sfc/src/compileScript.ts | 2 +- packages/compiler-sfc/src/compileStyle.ts | 2 +- packages/compiler-sfc/src/parse.ts | 11 ++++++++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/compiler-sfc/package.json b/packages/compiler-sfc/package.json index 1d48f0b1..6986db5a 100644 --- a/packages/compiler-sfc/package.json +++ b/packages/compiler-sfc/package.json @@ -33,7 +33,6 @@ "homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme", "dependencies": { "@babel/parser": "^7.15.0", - "@babel/types": "^7.15.0", "@types/estree": "^0.0.48", "@vue/compiler-core": "3.2.12", "@vue/compiler-dom": "3.2.12", @@ -52,6 +51,7 @@ "source-map": "^0.6.1" }, "devDependencies": { + "@babel/types": "^7.15.0", "@types/consolidate": "^0.14.0", "@types/lru-cache": "^5.1.0", "pug": "^3.0.1", diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 440c013d..08eb5588 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -98,7 +98,7 @@ export interface SFCScriptCompileOptions { /** * Compile the template and inline the resulting render function * directly inside setup(). - * - Only affects