power-link 1.0.0 → 1.0.2
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/README.md +3 -8
- package/package.json +1 -1
- package/tsup.config.ts +0 -50
- package/vitest.config.ts +0 -13
package/README.md
CHANGED
|
@@ -791,18 +791,13 @@ connector.updateAllConnections();
|
|
|
791
791
|
|
|
792
792
|
MIT License
|
|
793
793
|
|
|
794
|
-
##
|
|
794
|
+
## 🌟 Show Your Support
|
|
795
795
|
|
|
796
|
-
|
|
796
|
+
Give a ⭐️ on [GitHub](https://github.com/Tem-man/power-link) if this project helped you!
|
|
797
797
|
|
|
798
|
-
##
|
|
798
|
+
## 🤝 Contributing
|
|
799
799
|
|
|
800
800
|
If you have any questions or need help, please open an issue on GitHub.
|
|
801
801
|
|
|
802
|
-
## 🌟 Show Your Support
|
|
803
|
-
|
|
804
|
-
Give a ⭐️ if this project helped you!
|
|
805
|
-
|
|
806
802
|
---
|
|
807
803
|
|
|
808
|
-
Made with ❤️ by the power-link team
|
package/package.json
CHANGED
package/tsup.config.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
// 入口文件
|
|
5
|
-
entry: ['src/index.ts'],
|
|
6
|
-
|
|
7
|
-
// 输出格式:CJS、ESM、IIFE(浏览器直接引用)
|
|
8
|
-
format: ['cjs', 'esm', 'iife'],
|
|
9
|
-
|
|
10
|
-
// IIFE 格式的全局变量名
|
|
11
|
-
globalName: 'PowerLink',
|
|
12
|
-
|
|
13
|
-
// 明确指定为浏览器平台
|
|
14
|
-
platform: 'browser',
|
|
15
|
-
|
|
16
|
-
// 生成类型声明文件
|
|
17
|
-
dts: true,
|
|
18
|
-
|
|
19
|
-
// 生成 sourcemap
|
|
20
|
-
sourcemap: true,
|
|
21
|
-
|
|
22
|
-
// 构建前清理输出目录
|
|
23
|
-
clean: true,
|
|
24
|
-
|
|
25
|
-
// 目标环境
|
|
26
|
-
target: 'es2020',
|
|
27
|
-
|
|
28
|
-
// 输出目录
|
|
29
|
-
outDir: 'dist',
|
|
30
|
-
|
|
31
|
-
// 不压缩(库文件通常不需要压缩)
|
|
32
|
-
minify: false,
|
|
33
|
-
|
|
34
|
-
// Tree shaking
|
|
35
|
-
treeshake: true,
|
|
36
|
-
|
|
37
|
-
// 代码分割
|
|
38
|
-
splitting: false,
|
|
39
|
-
|
|
40
|
-
// 保留原始函数/类名
|
|
41
|
-
keepNames: true,
|
|
42
|
-
|
|
43
|
-
// 配置横幅和尾部代码
|
|
44
|
-
esbuildOptions(options) {
|
|
45
|
-
// 让 IIFE 的 PowerLink 直接可作为构造函数使用
|
|
46
|
-
options.footer = {
|
|
47
|
-
js: 'if(typeof PowerLink!=="undefined"&&PowerLink.default){Object.assign(PowerLink.default,PowerLink);PowerLink=PowerLink.default;}',
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
})
|