新增了rollup打包配置;

支持了传统浏览器的引入方式;
This commit is contained in:
2025-08-17 22:50:59 +08:00
parent 7da191231e
commit 451fea75f5
6 changed files with 856 additions and 12 deletions

View File

@@ -1,17 +1,20 @@
{
"name": "wxsdk-pure",
"version": "1.0.4",
"version": "1.1.0",
"description": "微信分享 SDK 封装",
"main": "index.js",
"type": "module",
"main": "dist/wxsdk-pure.js",
"module": "dist/wxsdk-pure.js",
"browser": "dist/wxsdk-pure.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rollup --config rollup.config.js"
},
"repository": {
"type": "git",
"url": "http://git.pandorastudio.cn/yuantao/wxSDK.git"
"url": "https://git.pandorastudio.cn/yuantao/wxSDK.git"
},
"homepage": "http://git.pandorastudio.cn/yuantao/wxSDK.git",
"bugs": "http://git.pandorastudio.cn/yuantao/wxSDK.git",
"homepage": "https://git.pandorastudio.cn/yuantao/wxSDK.git",
"bugs": "https://git.pandorastudio.cn/yuantao/wxSDK.git",
"keywords": [
"wxSDK",
"wx",
@@ -20,6 +23,8 @@
],
"author": "袁涛",
"license": "ISC",
"dependencies": {},
"devDependencies": {}
"devDependencies": {
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^7.0.2"
}
}