From 1d66dcc461d56ebe3566835a33eb47521e881ab4 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 9 Feb 2022 13:38:35 +0800 Subject: [PATCH] wip(app): nvue --- packages/uni-components/dist/components.js | 2 +- packages/uni-components/vite.config.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/uni-components/dist/components.js b/packages/uni-components/dist/components.js index 99033da265..c0ceca3806 100644 --- a/packages/uni-components/dist/components.js +++ b/packages/uni-components/dist/components.js @@ -1,4 +1,4 @@ -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 = [ diff --git a/packages/uni-components/vite.config.ts b/packages/uni-components/vite.config.ts index 546703d8cf..0d52b971b3 100644 --- a/packages/uni-components/vite.config.ts +++ b/packages/uni-components/vite.config.ts @@ -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', }, }, }, -- GitLab