fix(bridge): inline bridge dist files (#4170)

This commit is contained in:
Daniel Roe 2022-04-07 16:39:37 +01:00 committed by GitHub
parent c7ff6d1740
commit 7379184960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,11 @@ export async function setupNitroBridge () {
dir: nuxt.options.dev ? join(nuxt.options.buildDir, 'nitro') : resolve(nuxt.options.rootDir, '.output') dir: nuxt.options.dev ? join(nuxt.options.buildDir, 'nitro') : resolve(nuxt.options.rootDir, '.output')
}, },
externals: { externals: {
inline: nuxt.options.dev ? [] : [nuxt.options.buildDir] inline: [
...(nuxt.options.dev ? [] : [nuxt.options.buildDir]),
'@nuxt/bridge/dist',
'@nuxt/bridge-edge/dist'
]
}, },
alias: { alias: {
// Vue 2 mocks // Vue 2 mocks