mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 09:55: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
|
// Alias vue to have identical vue3 exports
|
||||||
addWebpackPlugin(VueCompat.webpack({
|
const { dst: vueCompat } = addTemplate({ src: resolve(distDir, 'runtime/vue2-bridge.mjs') })
|
||||||
src: resolve(distDir, 'runtime/vue2-bridge.mjs')
|
addWebpackPlugin(VueCompat.webpack({ src: vueCompat }))
|
||||||
}))
|
addVitePlugin(VueCompat.vite({ src: vueCompat }))
|
||||||
addVitePlugin(VueCompat.vite({
|
|
||||||
src: resolve(distDir, 'runtime/vue2-bridge.mjs')
|
|
||||||
}))
|
|
||||||
|
|
||||||
nuxt.hook('prepare:types', ({ tsConfig, references }) => {
|
nuxt.hook('prepare:types', ({ tsConfig, references }) => {
|
||||||
// Type 'vue' module with composition API exports
|
// Type 'vue' module with composition API exports
|
||||||
|
Loading…
Reference in New Issue
Block a user