From bab0c2a969cdf18309682bb2491f1c9c2856d78d Mon Sep 17 00:00:00 2001 From: waynzh Date: Mon, 16 Dec 2024 19:38:04 +0800 Subject: [PATCH] Remove setup-compiler-macros environments --- lib/index.d.ts | 13 ------------- lib/index.js | 12 ------------ tools/update-lib-index.js | 12 ------------ 3 files changed, 37 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index c4667b05b..19bbc8a9d 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -30,19 +30,6 @@ declare const vue: { '.vue': any vue: any } - environments: { - /** - * @deprecated - */ - 'setup-compiler-macros': { - globals: { - defineProps: 'readonly' - defineEmits: 'readonly' - defineExpose: 'readonly' - withDefaults: 'readonly' - } - } - } } export = vue diff --git a/lib/index.js b/lib/index.js index ef8ab352e..a9501c65a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -280,18 +280,6 @@ const plugin = { processors: { '.vue': require('./processor'), vue: require('./processor') - }, - environments: { - // TODO Remove in the next major version - /** @deprecated */ - 'setup-compiler-macros': { - globals: { - defineProps: 'readonly', - defineEmits: 'readonly', - defineExpose: 'readonly', - withDefaults: 'readonly' - } - } } } diff --git a/tools/update-lib-index.js b/tools/update-lib-index.js index 5ce5d459e..5e9dd6187 100644 --- a/tools/update-lib-index.js +++ b/tools/update-lib-index.js @@ -59,18 +59,6 @@ const plugin = { processors: { '.vue': require('./processor'), 'vue': require('./processor') - }, - environments: { - // TODO Remove in the next major version - /** @deprecated */ - 'setup-compiler-macros': { - globals: { - defineProps: 'readonly', - defineEmits: 'readonly', - defineExpose: 'readonly', - withDefaults: 'readonly' - } - } } }