Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add note about module exports #13

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/migration-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
export { configureCompat }
}
```

Note that this module declaration must be placed in a `*.d.ts` file which contains at least one other top-level import or export (`export {}` is enough) in order for these types to [augment the module](https://vuejs.org/guide/typescript/options-api.html#type-augmentation-placement) as opposed to overwriting it.

5. At this point, your application may encounter some compile-time errors / warnings (e.g. use of filters). Fix them first. If all compiler warnings are gone, you can also set the compiler to Vue 3 mode.

Expand Down