-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration: remove use of filters + set compiler to v3 mode
- Loading branch information
Showing
5 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ export default defineConfig({ | |
template: { | ||
compilerOptions: { | ||
compatConfig: { | ||
MODE: 2 | ||
MODE: 3 | ||
} | ||
} | ||
} | ||
|
1 comment
on commit b05d955
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After switching to the migration build, you will see both runtime warnings (in the browser console) and compiler warnings (in the command line). It's recommended to fix the compiler warnings first (some of them may be breaking the application).
In this project, filters are the only compiler-specific feature that needs fixing. After fixing all the compiler deprecation warnings, we can set the compiler to use Vue 3 behavior by default. Note the compatConfig
option should still be kept until the full migration is complete.
Thanks Evan
This ({{ timeAgo(comment.time) }}) is clearer than it {{ comment.time | timeAgo }} for a new vue js developers