MCPcopy Create free account
hub / github.com/TanStack/query / legacyConfig

Function legacyConfig

scripts/getTsupConfig.js:28–39  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

26 * @returns {import('tsup').Options}
27 */
28export function legacyConfig(opts) {
29 return {
30 entry: opts.entry,
31 format: ['cjs', 'esm'],
32 target: ['es2020', 'node16'],
33 outDir: 'build/legacy',
34 experimentalDts: true,
35 sourcemap: true,
36 clean: true,
37 esbuildPlugins: [esbuildPluginFilePathExtensions({ esmExtension: 'js' })],
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected