Skip to content

Commit 73affc2

Browse files
committedMar 18, 2025
fix: support absolute external
1 parent df1aa5b commit 73affc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/features/external.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function ExternalPlugin(
3030
return
3131
}
3232

33-
let shouldExternal = false
33+
let shouldExternal: boolean | 'absolute' = false
3434
if (options.skipNodeModulesBundle) {
3535
const resolved = await this.resolve(id)
3636
if (!resolved) return
@@ -45,7 +45,7 @@ export function ExternalPlugin(
4545

4646
if (shouldExternal) {
4747
debug('External dependency:', id)
48-
return { id, external: true }
48+
return { id, external: shouldExternal }
4949
}
5050
},
5151
}

0 commit comments

Comments
 (0)