Compare commits

...

2 Commits

3 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cmvr/iot-common", "name": "@cmvr/iot-common",
"version": "1.0.0", "version": "1.0.4",
"description": "CMVR IoT shared frontend runtime and business modules", "description": "CMVR IoT shared frontend runtime and business modules",
"author": { "author": {
"name": "zhanghao", "name": "zhanghao",
@ -10,7 +10,6 @@
"license": "UNLICENSED", "license": "UNLICENSED",
"private": false, "private": false,
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.js", "module": "./dist/index.js",
"exports": { "exports": {
".": "./dist/index.js", ".": "./dist/index.js",

View File

@ -120,11 +120,10 @@
</template> </template>
<script setup> <script setup>
import { computed, ref, reactive, watch, nextTick } from 'vue' import { computed, ref, reactive, watch } from 'vue'
import { Plus, Minus } from '@element-plus/icons-vue' import { Plus, Minus } from '@element-plus/icons-vue'
import FormItemRecursive from '../FormItemRecursive.vue' import FormItemRecursive from '../FormItemRecursive.vue'
import RobotExecutionTarget from './RobotExecutionTarget.vue' import RobotExecutionTarget from './RobotExecutionTarget.vue'
import { getInput } from '@/utils/flow'
import { useQuote } from './useQuote.js' import { useQuote } from './useQuote.js'
import { getArmStatus, getArmJointState, getAgvStatus, getAgvStations } from '@/api/flow/flow' import { getArmStatus, getArmJointState, getAgvStatus, getAgvStations } from '@/api/flow/flow'
import { getRobotList, getRobotDevicesByRobotId } from '@/api/resource/robot' import { getRobotList, getRobotDevicesByRobotId } from '@/api/resource/robot'

View File

@ -51,6 +51,10 @@ export default defineConfig({
}, },
build: { build: {
target: 'es2022', target: 'es2022',
// Keep published ESM chunks readable and safe for consumer Rollup builds.
// Consumers may bundle these chunks again; minifying here can cause short
// binding names to collide during that second pass.
minify: false,
sourcemap: true, sourcemap: true,
cssCodeSplit: false, cssCodeSplit: false,
lib: { lib: {
@ -62,6 +66,14 @@ export default defineConfig({
rollupOptions: { rollupOptions: {
external: (id) => externalDependencies.some((dependency) => id === dependency || id.startsWith(`${dependency}/`)), external: (id) => externalDependencies.some((dependency) => id === dependency || id.startsWith(`${dependency}/`)),
output: { output: {
// Publish one self-contained ESM entry. Consumer Vite/Rollup builds
// otherwise merge the pre-generated chunks and can collide on the
// minified bindings used by different Vue SFC chunks.
inlineDynamicImports: true,
globals: {
vue: 'Vue',
'vue-router': 'VueRouter'
},
chunkFileNames: 'chunks/[name]-[hash].js', chunkFileNames: 'chunks/[name]-[hash].js',
assetFileNames: (assetInfo) => assetInfo.name === 'style.css' assetFileNames: (assetInfo) => assetInfo.name === 'style.css'
? 'style.css' ? 'style.css'