message-verify 0.0.18-beta.0 → 0.0.20-beta.0
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/dist/index.d.ts +3 -0
- package/dist/index.js +20 -5
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +516 -0
- package/dist/resource.d.ts +2 -0
- package/dist/resource.js +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/getFingerprint.d.ts +1 -0
- package/dist/utils/getFingerprint.js +13 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/package.json +5 -1
- package/src/index.tsx +43 -11
- package/src/main.tsx +9 -5
- package/src/resource.ts +12 -0
- package/src/utils/getFingerprint.ts +12 -0
- package/src/utils/index.ts +2 -0
- package/stats.html +4949 -0
- package/vite.config.ts +23 -0
package/vite.config.ts
CHANGED
@@ -1,7 +1,30 @@
|
|
1
1
|
import { defineConfig } from 'vite'
|
2
2
|
import react from '@vitejs/plugin-react'
|
3
|
+
import { visualizer } from 'rollup-plugin-visualizer'
|
3
4
|
|
4
5
|
// https://vite.dev/config/
|
5
6
|
export default defineConfig({
|
6
7
|
plugins: [react()],
|
8
|
+
server: {
|
9
|
+
port: 5174, // 你的端口
|
10
|
+
proxy: {
|
11
|
+
'/admin': {
|
12
|
+
target: 'https://chidori-admin-test.yangqianguan.com',
|
13
|
+
changeOrigin: true,
|
14
|
+
secure: false,
|
15
|
+
},
|
16
|
+
},
|
17
|
+
},
|
18
|
+
build: {
|
19
|
+
lib: {
|
20
|
+
entry: './src/main.tsx', // 你的组件库入口
|
21
|
+
name: 'MessageVerify',
|
22
|
+
fileName: 'main',
|
23
|
+
formats: ['es', 'umd'],
|
24
|
+
},
|
25
|
+
rollupOptions: {
|
26
|
+
plugins: [visualizer({ open: true })],
|
27
|
+
// ...其他配置...
|
28
|
+
},
|
29
|
+
},
|
7
30
|
})
|