Skip to content

Commit

Permalink
add note about module exports (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoozbuster committed Mar 1, 2024
1 parent e0f492e commit d380b91
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit d380b91

Please sign in to comment.