mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): resolve vue from .nuxt
, not node_modules
(#4146)
This commit is contained in:
parent
4d6f77bae4
commit
0cbc9cb7cd
@ -60,12 +60,9 @@ export function setupAppBridge (_options: any) {
|
||||
})
|
||||
|
||||
// Alias vue to have identical vue3 exports
|
||||
addWebpackPlugin(VueCompat.webpack({
|
||||
src: resolve(distDir, 'runtime/vue2-bridge.mjs')
|
||||
}))
|
||||
addVitePlugin(VueCompat.vite({
|
||||
src: resolve(distDir, 'runtime/vue2-bridge.mjs')
|
||||
}))
|
||||
const { dst: vueCompat } = addTemplate({ src: resolve(distDir, 'runtime/vue2-bridge.mjs') })
|
||||
addWebpackPlugin(VueCompat.webpack({ src: vueCompat }))
|
||||
addVitePlugin(VueCompat.vite({ src: vueCompat }))
|
||||
|
||||
nuxt.hook('prepare:types', ({ tsConfig, references }) => {
|
||||
// Type 'vue' module with composition API exports
|
||||
|
Loading…
Reference in New Issue
Block a user