sirius-common-utils 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "sirius-common-utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "./dist/sirius-common-utils.umd.cjs",
6
6
  "module": "./dist/sirius-common-utils.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/sirius-common-utils.js",
10
+ "require": "./dist/sirius-common-utils.umd.cjs"
11
+ }
12
+ },
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "git+https://github.com/yangshuyi/js-common-utils.git"
@@ -24,7 +30,7 @@
24
30
  "build": "vite build",
25
31
  "preview": "vite preview"
26
32
  },
27
- "dependencies": {
33
+ "peerDependencies": {
28
34
  "axios": "1.3.4",
29
35
  "dayjs": "^1.11.9",
30
36
  "js-base64": "^3.7.2",
package/vite.config.js CHANGED
@@ -5,16 +5,10 @@ import react from '@vitejs/plugin-react'
5
5
  export default defineConfig({
6
6
  plugins: [react()],
7
7
  build:{
8
- // rollupOptions: {
9
- // // 请确保外部化那些你的库中不需要的依赖
10
- // external: ["vue","axios","dayjs","decimal.js","echarts","js-base64","js-md5","lodash","vue-axios","vue-router"],
11
- // output: {
12
- // // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
13
- // globals: {
14
- // vue: "Vue",
15
- // },
16
- // },
17
- // },
8
+ rollupOptions: {
9
+ external: ["vue","axios","dayjs","js-base64","js-md5","lodash"],
10
+ },
11
+ minify: false,
18
12
  lib:{
19
13
  name: 'sirius-common-utils',
20
14
  entry: './src/packages/index.js'