Skip to content

Commit

Permalink
fix: extraExternals not work in umd (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 authored and sorrycc committed Jan 14, 2020
1 parent 5004028 commit f66f381
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/father-build/src/getRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export default function(opts: IGetRollupConfigOpts): RollupOptions[] {
...extraExternals,
];
// umd 只要 external peerDependencies
const externalPeerDeps = Object.keys(pkg.peerDependencies || {});
const externalPeerDeps = [
...Object.keys(pkg.peerDependencies || {}),
...extraExternals,
];

function getPkgNameByid(id) {
const splitted = id.split('/');
Expand Down

0 comments on commit f66f381

Please sign in to comment.