Skip to content

Commit

Permalink
chore: Fix vite-plugin-externalize-deps except field (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Feb 27, 2024
1 parent 34a3826 commit fe0f59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
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({ include: options.externalInclude || [] }),
externalizeDeps({ except: options.bundledDeps || [] }),
preserveDirectives(),
dts({
outDir: `${outDir}/esm`,
Expand Down

0 comments on commit fe0f59e

Please sign in to comment.