Skip to content

Commit c57c3ba

Browse files
authored
Update migration-build.md
1 parent 6c53d84 commit c57c3ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/migration-build.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
135135
// vite.config.js
136136
export default {
137137
resolve: {
138-
alias: {
139-
'^vue$': '@vue/compat'
140-
}
138+
alias: [{
139+
find: /^vue$/, replacement: '@vue/compat'
140+
}]
141+
}
141142
},
142143
plugins: [
143144
vue({

0 commit comments

Comments
 (0)