Skip to content

Commit 6c53d84

Browse files
authored
Add better resolve alias matching for @vue/compat
The current example needs to be revised since Vite will use the string `vue` to match any import that contains it. (e.g. `import '@vue/server-renderer'` will be transformed to `import '@vue/compat/server-renderer'`
1 parent 794629c commit 6c53d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migration-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
136136
export default {
137137
resolve: {
138138
alias: {
139-
vue: '@vue/compat'
139+
'^vue$': '@vue/compat'
140140
}
141141
},
142142
plugins: [

0 commit comments

Comments
 (0)