Skip to content

Commit b407ed6

Browse files
committed
perf: disable externals if there is no include pattern
1 parent 37b3bbc commit b407ed6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/build/plugins/externals.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export function externals(opts: ExternalsOptions): Plugin {
5555

5656
const tracedPaths = new Set<string>();
5757

58+
if (include && include.length === 0) {
59+
return {
60+
name: PLUGIN_NAME,
61+
};
62+
}
63+
5864
return {
5965
name: PLUGIN_NAME,
6066
resolveId: {

0 commit comments

Comments
 (0)