We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2050b68 commit 34a3826Copy full SHA for 34a3826
2 files changed
src/build/index.d.ts
@@ -9,6 +9,8 @@ export type Options = {
9
exclude?: string[]
10
/** Directory where build output will be placed, e.g. `./dist` */
11
outDir?: string
12
+ /** Additional externals to include` */
13
+ externalInclude?: string[]
14
}
15
16
export function tanstackBuildConfig(config: Options): UserConfig
src/build/index.js
@@ -14,7 +14,7 @@ export const tanstackBuildConfig = (options) => {
return defineConfig({
plugins: [
17
- externalizeDeps(),
+ externalizeDeps({ include: options.externalInclude || [] }),
18
preserveDirectives(),
19
dts({
20
outDir: `${outDir}/esm`,
0 commit comments