mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(bridge): add additional vue composition-api resolutions (#614)
This commit is contained in:
parent
40d3aae439
commit
a2da8a0a83
@ -13,7 +13,13 @@ export function setupCAPIBridge (_options: any) {
|
||||
}
|
||||
|
||||
// Add composition-api support
|
||||
nuxt.options.alias['@vue/composition-api'] = require.resolve('@vue/composition-api/dist/vue-composition-api.mjs')
|
||||
const vueCapiEntry = require.resolve('@vue/composition-api/dist/vue-composition-api.mjs')
|
||||
nuxt.options.alias['@vue/composition-api/dist/vue-composition-api.common.js'] = vueCapiEntry
|
||||
nuxt.options.alias['@vue/composition-api/dist/vue-composition-api.common.prod.js'] = vueCapiEntry
|
||||
nuxt.options.alias['@vue/composition-api/dist/vue-composition-api.esm.js'] = vueCapiEntry
|
||||
nuxt.options.alias['@vue/composition-api/dist/vue-composition-api.js'] = vueCapiEntry
|
||||
nuxt.options.alias['@vue/composition-api/dist/vue-composition-api.mjs'] = vueCapiEntry
|
||||
nuxt.options.alias['@vue/composition-api'] = vueCapiEntry
|
||||
const capiPluginPath = resolve(distDir, 'runtime/capi.plugin.mjs')
|
||||
addPluginTemplate({ filename: 'capi.plugin.mjs', src: capiPluginPath })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user