Skip to content

Commit bb937e9

Browse files
committed
workflow(sfc-playground): attach filename
1 parent ce5e0b6 commit bb937e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/sfc-playground/src/store.ts

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ async function compileFile({ filename, code, compiled }: File) {
187187
}
188188

189189
if (finalCode) {
190+
finalCode += `\n${COMP_IDENTIFIER}.__file = ${JSON.stringify(filename)}`
190191
finalCode += `\nexport default ${COMP_IDENTIFIER}`
191192
compiled.js = finalCode.trimStart()
192193
}

0 commit comments

Comments
 (0)