Download react-query/packages/react-query-devtools/root.tsup.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/root.tsup.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/root.tsup.config.js
-
curl -L -o root.tsup.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/root.tsup.config.js
1.07 kB
| // @ts-check | |
| import { esbuildPluginFilePathExtensions } from 'esbuild-plugin-file-path-extensions' | |
| /** | |
| * @param {Object} opts - Options for building configurations. | |
| * @param {string[]} opts.entry - The entry array. | |
| * @returns {import('tsup').Options} | |
| */ | |
| export function modernConfig(opts) { | |
| return { | |
| entry: opts.entry, | |
| format: ['cjs', 'esm'], | |
| target: ['chrome91', 'firefox90', 'edge91', 'safari15', 'ios15', 'opera77'], | |
| outDir: 'build/modern', | |
| dts: true, | |
| sourcemap: true, | |
| clean: true, | |
| esbuildPlugins: [esbuildPluginFilePathExtensions({ esmExtension: 'js' })], | |
| } | |
| } | |
| /** | |
| * @param {Object} opts - Options for building configurations. | |
| * @param {string[]} opts.entry - The entry array. | |
| * @returns {import('tsup').Options} | |
| */ | |
| export function legacyConfig(opts) { | |
| return { | |
| entry: opts.entry, | |
| format: ['cjs', 'esm'], | |
| target: ['es2020', 'node16'], | |
| outDir: 'build/legacy', | |
| dts: true, | |
| sourcemap: true, | |
| clean: true, | |
| esbuildPlugins: [esbuildPluginFilePathExtensions({ esmExtension: 'js' })], | |
| } | |
| } | |