提交 1d66dcc4 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue

上级 433ee547
export function initComponents({ uni, Vue, weex, plus, BroadcastChannel, UniViewJSBridge, VueShared }) {
export function initComponents({ uni, Vue, weex, plus, BroadcastChannel, UniViewJSBridge, VueShared, UniShared }) {
var components = function(vue, shared) {
"use strict";
const OPEN_TYPES = [
......
......@@ -28,10 +28,10 @@ export default defineConfig({
formats: ['iife'],
},
rollupOptions: {
external: ['uni', 'vue', 'weex', '@vue/shared'],
external: ['uni', 'vue', 'weex', '@vue/shared', '@dcloudio/uni-shared'],
output: {
banner:
'export function initComponents({uni,Vue,weex,plus,BroadcastChannel,UniViewJSBridge,VueShared}) {',
'export function initComponents({uni,Vue,weex,plus,BroadcastChannel,UniViewJSBridge,VueShared,UniShared}) {',
footer: 'return components\n}',
entryFileNames: 'components.js',
globals: {
......@@ -39,6 +39,7 @@ export default defineConfig({
vue: 'Vue',
weex: 'weex',
'@vue/shared': 'VueShared',
'@dcloudio/uni-shared': 'UniShared',
},
},
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册