fix: 修复theme-helper引用报错问题 (#11273)
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
gh-pages / build (20.x) (push) Waiting to run

* fix: 修复theme-helper引用报错问题

* 调整成包依赖

* 调整成包依赖
This commit is contained in:
qkiroc 2024-11-28 15:41:43 +08:00 committed by GitHub
parent 311bb4de06
commit 4f826db3e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 16 deletions

View File

@ -31,10 +31,14 @@
"dependencies": {
"amis": "*",
"amis-core": "*",
"amis-ui": "*"
"amis-ui": "*",
"style-inject": "^0.3.0"
},
"devDependencies": {
"cross-env": "^7.0.3",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@rollup/plugin-url": "^7.0.0",
"@svgr/rollup": "^6.4.0",
"@types/async": "^2.0.45",
@ -45,23 +49,20 @@
"@types/lodash": "^4.14.76",
"@types/node": "^14.0.24",
"@types/react": "^18.0.24",
"@types/react-color": "^3.0.6",
"@types/react-dom": "^18.0.8",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"cross-env": "^7.0.3",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"rollup": "^2.73.0",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-license": "^2.7.0",
"@types/react-color": "^3.0.6",
"tslib": "^2.3.1",
"typescript": "^4.6.4",
"sass": "^1.49.7",
"sass-loader": "^12.5.0",
"style-loader": "^3.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-color": "^2.19.3"
"tslib": "^2.3.1",
"typescript": "^4.6.4"
},
"peerDependencies": {
"amis": "*",

View File

@ -47,10 +47,10 @@ const pkgs = [];
});
}
});
const external = id =>
pkgs.some(pkg => id.startsWith(pkg) || ~id.indexOf(`node_modules/${pkg}`));
const input = ['./src/index.ts'];
export default [
{
input,

View File

@ -166,8 +166,8 @@
right: px2rem(2px);
bottom: px2rem(6px);
transform: rotate(-40deg);
width: var(--Checkbox--full-inner-size);
height: calc(var(--Checkbox--full-inner-size) / 2);
width: px2rem(8px);
height: px2rem(4px);
border-color: #fff;
}
}