Skip to content

Commit

Permalink
fix(rollup): check module id against externals as well (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfwz100 authored Jul 18, 2023
1 parent 98edd15 commit a4296b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export function getRollupOptions(ctx: BuildContext): RollupOptions {

external(id) {
const pkg = getpkg(id);
const isExplicitExternal = arrayIncludes(ctx.options.externals, pkg);
const isExplicitExternal = arrayIncludes(ctx.options.externals, pkg) || arrayIncludes(ctx.options.externals, id);
if (isExplicitExternal) {
return true;
}
Expand Down

0 comments on commit a4296b8

Please sign in to comment.