Skip to content

Commit

Permalink
fix(scripts/build-plugin/rollup/build.js): 修复构建时丢失 babel 依赖的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yitan.lgh committed Mar 12, 2021
1 parent 6480b82 commit a6d6743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-plugin/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const compiler = async (config, packageInfo, _outputPath, isMain = false, apiInf
// 写入当前组件包的依赖
packageTpl.version = packageInfo.version;
packageTpl.name = packageInfo.name;
packageTpl.dependencies = {...packageTpl.peerDependencies, ...packageInfo.dependencies};
packageTpl.dependencies = {...packageTpl.peerDependencies, ...packageTpl.dependencies, ...packageInfo.dependencies};
delete packageTpl.peerDependencies;
if (isMain || packageInfo.name == '@uni/env') {
delete packageTpl.dependencies['@uni/env'];
Expand Down

0 comments on commit a6d6743

Please sign in to comment.