From 87bad9b1ba04213d768bd7fb64e7341bbccbebe0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 12 Dec 2021 15:29:56 +0800 Subject: [PATCH] chore(plugin-vue): remove deprecated options --- packages/plugin-vue/src/index.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index f407e578..60e73ead 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -57,16 +57,6 @@ export interface Options { */ reactivityTransform?: boolean | string | RegExp | (string | RegExp)[] - /** - * @deprecated use `reactivityTransform` instead. - */ - refTransform?: any - - /** - * @deprecated the plugin now auto-detects whether it's being invoked for ssr. - */ - ssr?: boolean - /** * Use custom compiler-sfc instance. Can be used to force a specific version. */ @@ -117,7 +107,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin { // Temporal handling for 2.7 breaking change const isSSR = (opt: { ssr?: boolean } | boolean | undefined) => opt === undefined - ? !!options.ssr + ? false : typeof opt === 'boolean' ? opt : opt?.ssr === true