Skip to content

Commit

Permalink
Allow additional externals to be included (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jprosevear authored Feb 26, 2024
1 parent 2050b68 commit 34a3826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export type Options = {
exclude?: string[]
/** Directory where build output will be placed, e.g. `./dist` */
outDir?: string
/** Additional externals to include` */
externalInclude?: string[]
}

export function tanstackBuildConfig(config: Options): UserConfig
2 changes: 1 addition & 1 deletion src/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const tanstackBuildConfig = (options) => {

return defineConfig({
plugins: [
externalizeDeps(),
externalizeDeps({ include: options.externalInclude || [] }),
preserveDirectives(),
dts({
outDir: `${outDir}/esm`,
Expand Down

0 comments on commit 34a3826

Please sign in to comment.