Skip to content

Commit 8dd0c1f

Browse files
committed
chore: merge remote-tracking branch 'origin/minor' into feat/onEffectCleanup-and-baseWatch
2 parents 2213634 + 274f6f7 commit 8dd0c1f

File tree

31 files changed

+898
-895
lines changed

31 files changed

+898
-895
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
temp
4+
coverage

CHANGELOG.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,116 @@
1+
## [3.4.2](https://github.com/vuejs/core/compare/v3.4.1...v3.4.2) (2023-12-30)
2+
3+
4+
### Bug Fixes
5+
6+
* **compiler-sfc:** fix dev regression for dot / namespace component usage ([dce99c1](https://github.com/vuejs/core/commit/dce99c12df981ca45a4d848c37ba8b16496025f0)), closes [#9947](https://github.com/vuejs/core/issues/9947)
7+
* **runtime-core:** support deep: false when watch reactive ([#9928](https://github.com/vuejs/core/issues/9928)) ([4f703d1](https://github.com/vuejs/core/commit/4f703d120d76d711084346f73ea295c73e6ef6b6)), closes [#9916](https://github.com/vuejs/core/issues/9916)
8+
* **ssr:** fix hydration error for slot outlet inside transition-group ([#9937](https://github.com/vuejs/core/issues/9937)) ([6cb00ed](https://github.com/vuejs/core/commit/6cb00ed0f9b64428ec18fada0f68467d6a813fde)), closes [#9933](https://github.com/vuejs/core/issues/9933)
9+
10+
11+
12+
## [3.4.1](https://github.com/vuejs/core/compare/v3.4.0...v3.4.1) (2023-12-30)
13+
14+
15+
### Bug Fixes
16+
17+
* **compat:** correct enum value for COMPILER_FILTERS feature ([#9875](https://github.com/vuejs/core/issues/9875)) ([77d33e2](https://github.com/vuejs/core/commit/77d33e263cf19983caf4e5c53a0eb0bee374843c))
18+
* **defineModel:** always default modifiers to empty object ([9bc3c7e](https://github.com/vuejs/core/commit/9bc3c7e29cf15f5ca96703542d10cfd786a3fc55)), closes [#9945](https://github.com/vuejs/core/issues/9945)
19+
* **defineModel:** support local mutation when only prop but no listener is passed ([97ce041](https://github.com/vuejs/core/commit/97ce041910b6ca4bef10f939493d6b5a06ea5b07))
20+
* **types:** fix defineModel watch type error ([#9942](https://github.com/vuejs/core/issues/9942)) ([4af8583](https://github.com/vuejs/core/commit/4af85835f7e593a7dffa7dc7e99f14877eb70fd1)), closes [#9939](https://github.com/vuejs/core/issues/9939)
21+
22+
23+
### Features
24+
25+
* **compiler-sfc:** support passing template parsing options when parsing sfc ([6fab855](https://github.com/vuejs/core/commit/6fab8551e4aeef4610987640de8b435b1ae321bb)) (necessary to fix https://github.com/vitejs/vite-plugin-vue/issues/322)
26+
27+
28+
29+
# [3.4.0 Slam Dunk](https://github.com/vuejs/core/compare/v3.4.0-rc.3...v3.4.0) (2023-12-29)
30+
31+
> Read [this blog post](https://blog.vuejs.org/posts/vue-3-4) for an overview of the release highlights.
32+
33+
### Potential Actions Needed
34+
35+
1. To fully leverage new features in 3.4, it is recommended to also update the following dependencies when upgrading to 3.4:
36+
37+
- Volar / vue-tsc@^1.8.27 (**required**)
38+
- @vitejs/plugin-vue@^5.0.0 (if using Vite)
39+
- nuxt@^3.9.0 (if using Nuxt)
40+
- vue-loader@^17.4.0 (if using webpack or vue-cli)
41+
42+
2. If using TSX with Vue, check actions needed in [Removed: Global JSX Namespace](https://blog.vuejs.org/posts/vue-3-4#global-jsx-namespace).
43+
44+
3. Make sure you are no longer using any deprecated features (if you are, you should have warnings in the console telling you so). They may have been [removed in 3.4](https://blog.vuejs.org/posts/vue-3-4#other-removed-features).
45+
46+
### Features
47+
48+
* **general:** MathML support ([#7836](https://github.com/vuejs/core/issues/7836)) ([d42b6ba](https://github.com/vuejs/core/commit/d42b6ba3f530746eb1221eb7a4be0f44eb56f7d3)), closes [#7820](https://github.com/vuejs/core/issues/7820)
49+
* **reactivity:** more efficient reactivity system ([#5912](https://github.com/vuejs/core/issues/5912)) ([16e06ca](https://github.com/vuejs/core/commit/16e06ca08f5a1e2af3fc7fb35de153dbe0c3087d)), closes [#311](https://github.com/vuejs/core/issues/311) [#1811](https://github.com/vuejs/core/issues/1811) [#6018](https://github.com/vuejs/core/issues/6018) [#7160](https://github.com/vuejs/core/issues/7160) [#8714](https://github.com/vuejs/core/issues/8714) [#9149](https://github.com/vuejs/core/issues/9149) [#9419](https://github.com/vuejs/core/issues/9419) [#9464](https://github.com/vuejs/core/issues/9464)
50+
* **reactivity:** expose last result for computed getter ([#9497](https://github.com/vuejs/core/issues/9497)) ([48b47a1](https://github.com/vuejs/core/commit/48b47a1ab63577e2dbd91947eea544e3ef185b85))
51+
* **runtime-core / dx:** link errors to docs in prod build ([#9165](https://github.com/vuejs/core/issues/9165)) ([9f8ba98](https://github.com/vuejs/core/commit/9f8ba9821fe166f77e63fa940e9e7e13ec3344fa))
52+
* **runtime-core:** add `once` option to watch ([#9034](https://github.com/vuejs/core/issues/9034)) ([a645e7a](https://github.com/vuejs/core/commit/a645e7aa51006516ba668b3a4365d296eb92ee7d))
53+
* **runtime-core:** provide full props to props validator functions ([#3258](https://github.com/vuejs/core/issues/3258)) ([8e27692](https://github.com/vuejs/core/commit/8e27692029a4645cd54287f776c0420f2b82740b))
54+
* **compiler-core:** export error message ([#8729](https://github.com/vuejs/core/issues/8729)) ([f7e80ee](https://github.com/vuejs/core/commit/f7e80ee4a065a9eaba98720abf415d9e87756cbd))
55+
* **compiler-core:** support specifying root namespace when parsing ([40f72d5](https://github.com/vuejs/core/commit/40f72d5e50b389cb11b7ca13461aa2a75ddacdb4))
56+
* **compiler-core:** support v-bind shorthand for key and value with the same name ([#9451](https://github.com/vuejs/core/issues/9451)) ([26399aa](https://github.com/vuejs/core/commit/26399aa6fac1596b294ffeba06bb498d86f5508c))
57+
* **compiler-core:** improve parsing tolerance for language-tools ([41ff68e](https://github.com/vuejs/core/commit/41ff68ea579d933333392146625560359acb728a))
58+
* **compiler-core:** support accessing Error as global in template expressions ([#7018](https://github.com/vuejs/core/issues/7018)) ([bcca475](https://github.com/vuejs/core/commit/bcca475dbc58d76434cd8120b94929758cee2825))
59+
* **compiler-core:** lift vnode hooks deprecation warning to error ([8abc754](https://github.com/vuejs/core/commit/8abc754d5d86d9dfd5a7927b846f1a743f352364))
60+
* **compiler-core:** export runtime error strings ([#9301](https://github.com/vuejs/core/issues/9301)) ([feb2f2e](https://github.com/vuejs/core/commit/feb2f2edce2d91218a5e9a52c81e322e4033296b))
61+
* **compiler-core:** add current filename to TransformContext ([#8950](https://github.com/vuejs/core/issues/8950)) ([638f1ab](https://github.com/vuejs/core/commit/638f1abbb632000553e2b7d75e87c95d8ca192d6))
62+
* **compiler-sfc:** analyze import usage in template via AST ([#9729](https://github.com/vuejs/core/issues/9729)) ([e8bbc94](https://github.com/vuejs/core/commit/e8bbc946cba6bf74c9da56f938b67d2a04c340ba)), closes [#8897](https://github.com/vuejs/core/issues/8897) [nuxt/nuxt#22416](https://github.com/nuxt/nuxt/issues/22416)
63+
* **compiler-sfc:** expose resolve type-based props and emits ([#8874](https://github.com/vuejs/core/issues/8874)) ([9e77580](https://github.com/vuejs/core/commit/9e77580c0c2f0d977bd0031a1d43cc334769d433))
64+
* **compiler-sfc:** bump postcss-modules to v6 ([2a507e3](https://github.com/vuejs/core/commit/2a507e32f0e2ef73813705a568b8633f68bda7a9))
65+
* **compiler-sfc:** promote defineModel stable ([#9598](https://github.com/vuejs/core/issues/9598)) ([ef688ba](https://github.com/vuejs/core/commit/ef688ba92bfccbc8b7ea3997eb297665d13e5249))
66+
* **compiler-sfc:** support import attributes and `using` syntax ([#8786](https://github.com/vuejs/core/issues/8786)) ([5b2bd1d](https://github.com/vuejs/core/commit/5b2bd1df78e8ff524c3a184adaa284681aba6574))
67+
* **compiler-sfc:** `defineModel` support local mutation by default, remove local option ([f74785b](https://github.com/vuejs/core/commit/f74785bc4ad351102dde17fdfd2c7276b823111f)), closes [/github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278](https://github.com//github.com/vuejs/rfcs/discussions/503/issues/discussioncomment-7566278)
68+
* **ssr:** add `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` feature flag ([#9550](https://github.com/vuejs/core/issues/9550)) ([bc7698d](https://github.com/vuejs/core/commit/bc7698dbfed9b5327a93565f9df336ae5a94d605))
69+
* **ssr:** improve ssr hydration mismatch checks ([#5953](https://github.com/vuejs/core/issues/5953)) ([2ffc1e8](https://github.com/vuejs/core/commit/2ffc1e8cfdc6ec9c45c4a4dd8e3081b2aa138f1e)), closes [#5063](https://github.com/vuejs/core/issues/5063)
70+
* **types:** use enum to replace const enum ([#9261](https://github.com/vuejs/core/issues/9261)) ([fff7b86](https://github.com/vuejs/core/commit/fff7b864f4292d0430ba2bda7098ad43876b0210)), closes [#1228](https://github.com/vuejs/core/issues/1228)
71+
* **types:** add emits and slots type to `FunctionalComponent` ([#8644](https://github.com/vuejs/core/issues/8644)) ([927ab17](https://github.com/vuejs/core/commit/927ab17cfc645e82d061fdf227c34689491268e1))
72+
* **types:** export `AriaAttributes` type ([#8909](https://github.com/vuejs/core/issues/8909)) ([fd0b6ba](https://github.com/vuejs/core/commit/fd0b6ba01660499fa07b0cf360eefaac8cca8287))
73+
* **types:** export `ObjectPlugin` and `FunctionPlugin` types ([#8946](https://github.com/vuejs/core/issues/8946)) ([fa4969e](https://github.com/vuejs/core/commit/fa4969e7a3aefa6863203f9294fc5e769ddf6d8f)), closes [#8577](https://github.com/vuejs/core/issues/8577)
74+
* **types:** expose `DefineProps` type ([096ba81](https://github.com/vuejs/core/commit/096ba81817b7da15f61bc55fc1a93f72ac9586e0))
75+
* **types:** expose `PublicProps` type ([#2403](https://github.com/vuejs/core/issues/2403)) ([44135dc](https://github.com/vuejs/core/commit/44135dc95fb8fea26b84d1433839d28b8c21f708))
76+
* **types:** improve event type inference when using `h` with native elements ([#9756](https://github.com/vuejs/core/issues/9756)) ([a625376](https://github.com/vuejs/core/commit/a625376ac8901eea81bf3c66cb531f2157f073ef))
77+
* **types:** provide `ComponentInstance` type ([#5408](https://github.com/vuejs/core/issues/5408)) ([bfb8565](https://github.com/vuejs/core/commit/bfb856565d3105db4b18991ae9e404e7cc989b25))
78+
* **types:** support passing generics when registering global directives ([#9660](https://github.com/vuejs/core/issues/9660)) ([a41409e](https://github.com/vuejs/core/commit/a41409ed02a8c7220e637f56caf6813edeb077f8))
79+
80+
81+
### Performance Improvements
82+
83+
* **compiler-sfc:** avoid sfc source map unnecessary serialization and parsing ([f15d2f6](https://github.com/vuejs/core/commit/f15d2f6cf69c0c39f8dfb5c33122790c68bf92e2))
84+
* **compiler-sfc:** remove magic-string trim on script ([e8e3ec6](https://github.com/vuejs/core/commit/e8e3ec6ca7392e43975c75b56eaaa711d5ea9410))
85+
* **compiler-sfc:** use faster source map addMapping ([50cde7c](https://github.com/vuejs/core/commit/50cde7cfbcc49022ba88f5f69fa9b930b483c282))
86+
* **compiler-core:** optimize away isBuiltInType ([66c0ed0](https://github.com/vuejs/core/commit/66c0ed0a3c1c6f37dafc6b1c52b75c6bf60e3136))
87+
* **compiler-core:** optimize position cloning ([2073236](https://github.com/vuejs/core/commit/20732366b9b3530d33b842cf1fc985919afb9317))
88+
* **codegen:** optimize line / column calculation during codegen ([3be53d9](https://github.com/vuejs/core/commit/3be53d9b974dae1a10eb795cade71ae765e17574))
89+
* **codegen:** optimize source map generation ([c11002f](https://github.com/vuejs/core/commit/c11002f16afd243a2b15b546816e73882eea9e4d))
90+
* **shared:** optimize makeMap ([ae6fba9](https://github.com/vuejs/core/commit/ae6fba94954bac6430902f77b0d1113a98a75b18))
91+
92+
93+
### BREAKING CHANGES
94+
95+
#### Global JSX Registration Removed
96+
97+
Starting in 3.4, Vue no longer registers the global `JSX` namespace by default. This is necessary to avoid global namespace collision with React so that TSX of both libs can co-exist in the same project. This should not affect SFC-only users with latest version of Volar.
98+
99+
If you are using TSX, there are two options:
100+
101+
1. Explicitly set [jsxImportSource](https://www.typescriptlang.org/tsconfig#jsxImportSource) to `'vue'` in `tsconfig.json` before upgrading to 3.4. You can also opt-in per file by adding a `/* @jsxImportSource vue */` comment at the top of the file.
102+
103+
2. If you have code that depends on the presence of the global `JSX` namespace, e.g. usage of types like `JSX.Element` etc., you can retain the exact pre-3.4 global behavior by explicitly referencing `vue/jsx`, which registers the global `JSX` namespace.
104+
105+
Note that this is a type-only breaking change in a minor release, which adheres to our [release policy](https://vuejs.org/about/releases.html#semantic-versioning-edge-cases).
106+
107+
#### Deprecated Features Removed
108+
109+
- [Reactivity Transform](https://vuejs.org/guide/extras/reactivity-transform.html) was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the [Vue Macros plugin](https://vue-macros.dev/features/reactivity-transform.html).
110+
- `app.config.unwrapInjectedRef` has been removed. It was deprecated and enabled by default in 3.3. In 3.4 it is no longer possible to disable this behavior.
111+
- `@vnodeXXX` event listeners in templates are now a compiler error instead of a deprecation warning. Use `@vue:XXX` listeners instead.
112+
- `v-is` directive has been removed. It was deprecated in 3.3. Use the [`is` attribute with `vue:` prefix](https://vuejs.org/api/built-in-special-attributes.html#is) instead.
113+
1114
# [3.4.0-rc.3](https://github.com/vuejs/core/compare/v3.4.0-rc.2...v3.4.0-rc.3) (2023-12-27)
2115

3116

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "3.4.0-rc.3",
3+
"version": "3.4.2",
44
"packageManager": "[email protected]",
55
"type": "module",
66
"scripts": {
@@ -13,7 +13,7 @@
1313
"size-esm-runtime": "node scripts/build.js vue -f esm-bundler-runtime",
1414
"size-esm": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler",
1515
"check": "tsc --incremental --noEmit",
16-
"lint": "eslint --cache --ext .js,.ts,.tsx .",
16+
"lint": "eslint --cache --ext .js,.ts,.tsx . --ignore-path .gitignore",
1717
"format": "prettier --write --cache .",
1818
"format-check": "prettier --check --cache .",
1919
"test": "vitest",

packages/compiler-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-core",
3-
"version": "3.4.0-rc.3",
3+
"version": "3.4.2",
44
"description": "@vue/compiler-core",
55
"main": "index.js",
66
"module": "dist/compiler-core.esm-bundler.js",

packages/compiler-core/src/compat/compatConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export enum CompilerDeprecationTypes {
2121
COMPILER_V_IF_V_FOR_PRECEDENCE = 'COMPILER_V_IF_V_FOR_PRECEDENCE',
2222
COMPILER_NATIVE_TEMPLATE = 'COMPILER_NATIVE_TEMPLATE',
2323
COMPILER_INLINE_TEMPLATE = 'COMPILER_INLINE_TEMPLATE',
24-
COMPILER_FILTERS = 'COMPILER_FILTER',
24+
COMPILER_FILTERS = 'COMPILER_FILTERS',
2525
}
2626

2727
type DeprecationData = {

packages/compiler-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-dom",
3-
"version": "3.4.0-rc.3",
3+
"version": "3.4.2",
44
"description": "@vue/compiler-dom",
55
"main": "index.js",
66
"module": "dist/compiler-dom.esm-bundler.js",

packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap

Lines changed: 0 additions & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -639,190 +639,6 @@ return { foo, bar, baz, y, z }
639639
}"
640640
`;
641641
642-
exports[`SFC compile <script setup> > dev mode import usage check > TS annotations 1`] = `
643-
"import { defineComponent as _defineComponent } from 'vue'
644-
import { Foo, Bar, Baz, Qux, Fred } from './x'
645-
const a = 1
646-
647-
export default /*#__PURE__*/_defineComponent({
648-
setup(__props, { expose: __expose }) {
649-
__expose();
650-
651-
function b() {}
652-
653-
return { a, b, get Baz() { return Baz } }
654-
}
655-
656-
})"
657-
`;
658-
659-
exports[`SFC compile <script setup> > dev mode import usage check > attribute expressions 1`] = `
660-
"import { defineComponent as _defineComponent } from 'vue'
661-
import { bar, baz } from './x'
662-
const cond = true
663-
664-
export default /*#__PURE__*/_defineComponent({
665-
setup(__props, { expose: __expose }) {
666-
__expose();
667-
668-
669-
return { cond, get bar() { return bar }, get baz() { return baz } }
670-
}
671-
672-
})"
673-
`;
674-
675-
exports[`SFC compile <script setup> > dev mode import usage check > components 1`] = `
676-
"import { defineComponent as _defineComponent } from 'vue'
677-
import { FooBar, FooBaz, FooQux, foo } from './x'
678-
const fooBar: FooBar = 1
679-
680-
export default /*#__PURE__*/_defineComponent({
681-
setup(__props, { expose: __expose }) {
682-
__expose();
683-
684-
685-
return { fooBar, get FooBaz() { return FooBaz }, get FooQux() { return FooQux }, get foo() { return foo } }
686-
}
687-
688-
})"
689-
`;
690-
691-
exports[`SFC compile <script setup> > dev mode import usage check > directive 1`] = `
692-
"import { defineComponent as _defineComponent } from 'vue'
693-
import { vMyDir } from './x'
694-
695-
export default /*#__PURE__*/_defineComponent({
696-
setup(__props, { expose: __expose }) {
697-
__expose();
698-
699-
700-
return { get vMyDir() { return vMyDir } }
701-
}
702-
703-
})"
704-
`;
705-
706-
exports[`SFC compile <script setup> > dev mode import usage check > dynamic arguments 1`] = `
707-
"import { defineComponent as _defineComponent } from 'vue'
708-
import { FooBar, foo, bar, unused, baz } from './x'
709-
710-
export default /*#__PURE__*/_defineComponent({
711-
setup(__props, { expose: __expose }) {
712-
__expose();
713-
714-
715-
return { get FooBar() { return FooBar }, get foo() { return foo }, get bar() { return bar }, get baz() { return baz } }
716-
}
717-
718-
})"
719-
`;
720-
721-
exports[`SFC compile <script setup> > dev mode import usage check > js template string interpolations 1`] = `
722-
"import { defineComponent as _defineComponent } from 'vue'
723-
import { VAR, VAR2, VAR3 } from './x'
724-
725-
export default /*#__PURE__*/_defineComponent({
726-
setup(__props, { expose: __expose }) {
727-
__expose();
728-
729-
730-
return { get VAR() { return VAR }, get VAR3() { return VAR3 } }
731-
}
732-
733-
})"
734-
`;
735-
736-
exports[`SFC compile <script setup> > dev mode import usage check > last tag 1`] = `
737-
"import { defineComponent as _defineComponent } from 'vue'
738-
import { FooBaz, Last } from './x'
739-
740-
export default /*#__PURE__*/_defineComponent({
741-
setup(__props, { expose: __expose }) {
742-
__expose();
743-
744-
745-
return { get FooBaz() { return FooBaz }, get Last() { return Last } }
746-
}
747-
748-
})"
749-
`;
750-
751-
exports[`SFC compile <script setup> > dev mode import usage check > property access (whitespace) 1`] = `
752-
"import { defineComponent as _defineComponent } from 'vue'
753-
import { Foo, Bar, Baz } from './foo'
754-
755-
export default /*#__PURE__*/_defineComponent({
756-
setup(__props, { expose: __expose }) {
757-
__expose();
758-
759-
760-
return { get Foo() { return Foo } }
761-
}
762-
763-
})"
764-
`;
765-
766-
exports[`SFC compile <script setup> > dev mode import usage check > property access 1`] = `
767-
"import { defineComponent as _defineComponent } from 'vue'
768-
import { Foo, Bar, Baz } from './foo'
769-
770-
export default /*#__PURE__*/_defineComponent({
771-
setup(__props, { expose: __expose }) {
772-
__expose();
773-
774-
775-
return { get Foo() { return Foo } }
776-
}
777-
778-
})"
779-
`;
780-
781-
exports[`SFC compile <script setup> > dev mode import usage check > spread operator 1`] = `
782-
"import { defineComponent as _defineComponent } from 'vue'
783-
import { Foo, Bar, Baz } from './foo'
784-
785-
export default /*#__PURE__*/_defineComponent({
786-
setup(__props, { expose: __expose }) {
787-
__expose();
788-
789-
790-
return { get Foo() { return Foo } }
791-
}
792-
793-
})"
794-
`;
795-
796-
exports[`SFC compile <script setup> > dev mode import usage check > template ref 1`] = `
797-
"import { defineComponent as _defineComponent } from 'vue'
798-
import { foo, bar, Baz } from './foo'
799-
800-
export default /*#__PURE__*/_defineComponent({
801-
setup(__props, { expose: __expose }) {
802-
__expose();
803-
804-
805-
return { get foo() { return foo }, get bar() { return bar }, get Baz() { return Baz } }
806-
}
807-
808-
})"
809-
`;
810-
811-
exports[`SFC compile <script setup> > dev mode import usage check > vue interpolations 1`] = `
812-
"import { defineComponent as _defineComponent } from 'vue'
813-
import { x, y, z, x$y } from './x'
814-
815-
export default /*#__PURE__*/_defineComponent({
816-
setup(__props, { expose: __expose }) {
817-
__expose();
818-
819-
820-
return { get x() { return x }, get z() { return z }, get x$y() { return x$y } }
821-
}
822-
823-
})"
824-
`;
825-
826642
exports[`SFC compile <script setup> > errors > should allow defineProps/Emit() referencing imported binding 1`] = `
827643
"import { bar } from './bar'
828644

0 commit comments

Comments
 (0)