MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-javascript / getBaseNodeOptions

Function getBaseNodeOptions

base.tsup.config.ts:47–59  ·  view source on GitHub ↗
(
  pkg: PKG,
  cwd: string,
  requester: Requester = 'http',
  target: string = 'node14',
)

Source from the content-addressed store, hash-verified

45}
46
47export function getBaseNodeOptions(
48 pkg: PKG,
49 cwd: string,
50 requester: Requester = 'http',
51 target: string = 'node14',
52): Options {
53 return {
54 ...getBaseConfig(cwd),
55 platform: 'node',
56 target,
57 external: [...getDependencies(pkg, requester), 'node:crypto'],
58 };
59}
60
61export function getBaseBrowserOptions(pkg: PKG, cwd: string, requester: Requester = 'xhr'): Options {
62 return {

Callers 15

tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90
tsup.config.tsFile · 0.90

Calls 2

getBaseConfigFunction · 0.85
getDependenciesFunction · 0.85

Tested by

no test coverage detected