Skip to content

Commit 477dd22

Browse files
committed
feat: disallow runtime
1 parent 8310e56 commit 477dd22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,10 @@ export function compileScript(
601601
}
602602
hasDefineSlotsCall = true
603603

604+
if (node.arguments) {
605+
error(`${DEFINE_SLOTS}() cannot accept arguments`, node)
606+
}
607+
604608
if (declId) {
605609
s.overwrite(
606610
startOffset + node.start!,

0 commit comments

Comments
 (0)