Download react-hook-form/scripts/rollup/rollup.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/rollup/rollup.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/rollup/rollup.config.js
-
curl -L -o rollup.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/rollup/rollup.config.js
473 Bytes
| import pkg from '../../package.json'; | |
| import { createRollupConfig } from './createRollupConfig'; | |
| const name = 'index'; | |
| const options = [ | |
| { | |
| name, | |
| format: 'cjs', | |
| input: pkg.source, | |
| }, | |
| { name, format: 'esm', input: pkg.source }, | |
| { | |
| name: 'react-server', | |
| format: 'esm', | |
| input: 'src/index.react-server.ts', | |
| }, | |
| { | |
| name, | |
| format: 'umd', | |
| input: pkg.source, | |
| }, | |
| ]; | |
| export default options.map((option) => createRollupConfig(option)); | |