1
1
import type { Options } from 'tsup';
2
2
import { defineConfig } from 'tsup';
3
3
4
- import { getBaseNodeOptions,getBaseBrowserOptions,getDependencies} from "../../base.tsup.config"
4
+ import { getBaseNodeOptions, getBaseBrowserOptions, getDependencies } from "../../base.tsup.config"
5
5
6
6
import pkg from "./package.json" with { type:' json' }
7
7
@@ -80,7 +80,7 @@ const browserConfigs: Options[] = [
80
80
noExternal: ['dom', '@algolia/client-common', '@algolia/requester-browser-xhr'],
81
81
{ {/isAlgoliasearchClient} }
82
82
{ {^isAlgoliasearchClient} }
83
- noExternal: getDependencies(pkg),
83
+ noExternal: getDependencies(pkg, 'browser' ),
84
84
{ {/isAlgoliasearchClient} }
85
85
},
86
86
{ {#isAlgoliasearchClient} }
@@ -102,7 +102,7 @@ const browserConfigs: Options[] = [
102
102
entry: {' browser.min' : ' builds/browser.ts' } ,
103
103
outDir: 'dist',
104
104
external: [],
105
- noExternal: getDependencies(pkg),
105
+ noExternal: getDependencies(pkg, 'browser' ),
106
106
}
107
107
{ {/isAlgoliasearchClient} }
108
108
];
0 commit comments