From fe0f59ea36720838a830d8256b51f56e377e2bd8 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Tue, 27 Feb 2024 19:49:01 +1100 Subject: [PATCH] chore: Fix `vite-plugin-externalize-deps` `except` field (#47) --- src/build/index.d.ts | 2 +- src/build/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/index.d.ts b/src/build/index.d.ts index 9648509..22694c7 100644 --- a/src/build/index.d.ts +++ b/src/build/index.d.ts @@ -10,7 +10,7 @@ export type Options = { /** Directory where build output will be placed, e.g. `./dist` */ outDir?: string /** Additional externals to include` */ - externalInclude?: string[] + bundledDeps?: string[] } export function tanstackBuildConfig(config: Options): UserConfig diff --git a/src/build/index.js b/src/build/index.js index a02def6..4e48da1 100644 --- a/src/build/index.js +++ b/src/build/index.js @@ -14,7 +14,7 @@ export const tanstackBuildConfig = (options) => { return defineConfig({ plugins: [ - externalizeDeps({ include: options.externalInclude || [] }), + externalizeDeps({ except: options.bundledDeps || [] }), preserveDirectives(), dts({ outDir: `${outDir}/esm`,