Skip to content

Commit 34a3826

Browse files
authored
Allow additional externals to be included (#43)
1 parent 2050b68 commit 34a3826

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/build/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export type Options = {
99
exclude?: string[]
1010
/** Directory where build output will be placed, e.g. `./dist` */
1111
outDir?: string
12+
/** Additional externals to include` */
13+
externalInclude?: string[]
1214
}
1315

1416
export function tanstackBuildConfig(config: Options): UserConfig

src/build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const tanstackBuildConfig = (options) => {
1414

1515
return defineConfig({
1616
plugins: [
17-
externalizeDeps(),
17+
externalizeDeps({ include: options.externalInclude || [] }),
1818
preserveDirectives(),
1919
dts({
2020
outDir: `${outDir}/esm`,

0 commit comments

Comments
 (0)