zhangjq
2026-02-02 eabd7fc28f7361f0ec46f72f5dcb14532f6965d8
生产环境配置修改依赖添加
3个文件已修改
71 ■■■■ 已修改文件
package-lock.json 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json
@@ -70,7 +70,7 @@
        "vue": "^3.5.13",
        "vue-cropper": "^0.6.5",
        "vue-cropperjs": "^5.0.0",
        "vue-demi": "^0.14.10",
        "vue-demi": "^0.14.6",
        "vue-i18n": "^9.14.2",
        "vue-infinite-scroll": "^2.0.2",
        "vue-print-nb-jeecg": "^1.0.12",
@@ -4713,7 +4713,7 @@
    },
    "node_modules/@vue-office/docx": {
      "version": "1.6.3",
      "resolved": "https://registry.npmmirror.com/@vue-office/docx/-/docx-1.6.3.tgz",
      "resolved": "https://registry.npmjs.org/@vue-office/docx/-/docx-1.6.3.tgz",
      "integrity": "sha512-Cs+3CAaRBOWOiW4XAhTwwxJ0dy8cPIf6DqfNvYcD3YACiLwO4kuawLF2IAXxyijhbuOeoFsfvoVbOc16A/4bZA==",
      "hasInstallScript": true,
      "license": "MIT",
@@ -4730,7 +4730,7 @@
    },
    "node_modules/@vue-office/excel": {
      "version": "1.7.14",
      "resolved": "https://registry.npmmirror.com/@vue-office/excel/-/excel-1.7.14.tgz",
      "resolved": "https://registry.npmjs.org/@vue-office/excel/-/excel-1.7.14.tgz",
      "integrity": "sha512-pVUgt+emDQUnW7q22CfnQ+jl43mM/7IFwYzOg7lwOwPEbiVB4K4qEQf+y/bc4xGXz75w1/e3Kz3G6wAafmFBFg==",
      "hasInstallScript": true,
      "license": "MIT",
@@ -4747,7 +4747,7 @@
    },
    "node_modules/@vue-office/pdf": {
      "version": "2.0.10",
      "resolved": "https://registry.npmmirror.com/@vue-office/pdf/-/pdf-2.0.10.tgz",
      "resolved": "https://registry.npmjs.org/@vue-office/pdf/-/pdf-2.0.10.tgz",
      "integrity": "sha512-yHVLrMAKpMPBkhBwofFyGEtEeJF0Zd7oGmf56Pe5aj/xObdRq3E1CIZqTqhWJNgHV8oLQqaX0vs4p5T1zq+GIA==",
      "hasInstallScript": true,
      "license": "MIT",
@@ -4973,6 +4973,32 @@
        "url": "https://github.com/sponsors/antfu"
      }
    },
    "node_modules/@vueuse/core/node_modules/vue-demi": {
      "version": "0.14.10",
      "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz",
      "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
      "hasInstallScript": true,
      "license": "MIT",
      "bin": {
        "vue-demi-fix": "bin/vue-demi-fix.js",
        "vue-demi-switch": "bin/vue-demi-switch.js"
      },
      "engines": {
        "node": ">=12"
      },
      "funding": {
        "url": "https://github.com/sponsors/antfu"
      },
      "peerDependencies": {
        "@vue/composition-api": "^1.0.0-rc.1",
        "vue": "^3.0.0-0 || ^2.6.0"
      },
      "peerDependenciesMeta": {
        "@vue/composition-api": {
          "optional": true
        }
      }
    },
    "node_modules/@vueuse/metadata": {
      "version": "10.11.1",
      "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-10.11.1.tgz",
@@ -4992,6 +5018,32 @@
      },
      "funding": {
        "url": "https://github.com/sponsors/antfu"
      }
    },
    "node_modules/@vueuse/shared/node_modules/vue-demi": {
      "version": "0.14.10",
      "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz",
      "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
      "hasInstallScript": true,
      "license": "MIT",
      "bin": {
        "vue-demi-fix": "bin/vue-demi-fix.js",
        "vue-demi-switch": "bin/vue-demi-switch.js"
      },
      "engines": {
        "node": ">=12"
      },
      "funding": {
        "url": "https://github.com/sponsors/antfu"
      },
      "peerDependencies": {
        "@vue/composition-api": "^1.0.0-rc.1",
        "vue": "^3.0.0-0 || ^2.6.0"
      },
      "peerDependenciesMeta": {
        "@vue/composition-api": {
          "optional": true
        }
      }
    },
    "node_modules/@vxe-ui/core": {
@@ -21819,9 +21871,9 @@
      }
    },
    "node_modules/vue-demi": {
      "version": "0.14.10",
      "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz",
      "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
      "version": "0.14.6",
      "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz",
      "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==",
      "hasInstallScript": true,
      "license": "MIT",
      "bin": {
package.json
@@ -84,7 +84,7 @@
    "vue": "^3.5.13",
    "vue-cropper": "^0.6.5",
    "vue-cropperjs": "^5.0.0",
    "vue-demi": "^0.14.10",
    "vue-demi": "^0.14.6",
    "vue-i18n": "^9.14.2",
    "vue-infinite-scroll": "^2.0.2",
    "vue-print-nb-jeecg": "^1.0.12",
vite.config.ts
@@ -95,6 +95,8 @@
      rollupOptions: {
        // 关闭除屑优化,防止删除重要代码,导致打包后功能出现异常
        treeshake: false,
        // 在这个位置添加 external 配置
  external: ['@vue-office/docx', '@vue-office/excel', '@vue-office/pdf'],
        output: {
          chunkFileNames: 'js/[name]-[hash].js', // 引入文件名的名称
          entryFileNames: 'js/[name]-[hash].js', // 包的入口文件名称
@@ -140,6 +142,7 @@
      esbuildOptions: {
        target: 'es2020',
      },
      include: ['@vue-office/docx', '@vue-office/excel', '@vue-office/pdf'],
      exclude: [
        //升级vite4后,需要排除online依赖
        '@jeecg/online',