Skip to content

Commit 2e10261

Browse files
committed
chore: warn script setup compiler macro imports
1 parent d35e0b1 commit 2e10261

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/compiler-sfc/src/compileScript.ts

+3
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,9 @@ export function compileScript(
778778
imported === DEFINE_EMITS ||
779779
imported === DEFINE_EXPOSE)
780780
) {
781+
warnOnce(
782+
`\`${imported}\` is a compiler macro and no longer needs to be imported.`
783+
)
781784
removeSpecifier(i)
782785
} else if (existing) {
783786
if (existing.source === source && existing.imported === imported) {

0 commit comments

Comments
 (0)