diff --git a/package.json b/package.json index 5929bd1..faebebc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cmvr/iot-common", - "version": "1.0.0", + "version": "1.0.2", "description": "CMVR IoT shared frontend runtime and business modules", "author": { "name": "zhanghao", @@ -10,7 +10,6 @@ "license": "UNLICENSED", "private": false, "main": "./dist/index.js", - "module": "./dist/index.js", "exports": { ".": "./dist/index.js", diff --git a/vite.config.js b/vite.config.js index fc711dc..9b74917 100644 --- a/vite.config.js +++ b/vite.config.js @@ -62,6 +62,10 @@ export default defineConfig({ rollupOptions: { external: (id) => externalDependencies.some((dependency) => id === dependency || id.startsWith(`${dependency}/`)), output: { + globals: { + vue: 'Vue', + 'vue-router': 'VueRouter' + }, chunkFileNames: 'chunks/[name]-[hash].js', assetFileNames: (assetInfo) => assetInfo.name === 'style.css' ? 'style.css'