]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
fix(compiler-sfc): allow declaring variables after defineProps (#7461)
authorJulien Huang <63512348+huang-julien@users.noreply.github.com>
Mon, 9 Jan 2023 14:13:58 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 14:13:58 +0000 (15:13 +0100)
commit686c829fec9137cdfe6e51af34f2af01a575f7c6
tree4c75e0e3581e9a1b5f945dc0fc7d5a607d2bf4f5
parent1fa3d9573051f549e6d381a5e88ec8d5d855e4c9
fix(compiler-sfc): allow declaring variables after defineProps (#7461)

* fix(compiler-sfc): allow declaring variables after defineProps

* test(compiler-sfc): test defineProps in multiple variable declaration
packages/compiler-sfc/__tests__/__snapshots__/compileScriptPropsTransform.spec.ts.snap
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
packages/compiler-sfc/src/compileScript.ts