Skip to content

Commit fe0f59e

Browse files
chore: Fix vite-plugin-externalize-deps except field (#47)
1 parent 34a3826 commit fe0f59e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/build/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Options = {
1010
/** Directory where build output will be placed, e.g. `./dist` */
1111
outDir?: string
1212
/** Additional externals to include` */
13-
externalInclude?: string[]
13+
bundledDeps?: string[]
1414
}
1515

1616
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({ include: options.externalInclude || [] }),
17+
externalizeDeps({ except: options.bundledDeps || [] }),
1818
preserveDirectives(),
1919
dts({
2020
outDir: `${outDir}/esm`,

0 commit comments

Comments
 (0)