Download next.js/packages/next/src/build/webpack/stringify-request.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/webpack/stringify-request.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/build/webpack/stringify-request.ts
-
curl -L -o stringify-request.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/webpack/stringify-request.ts
282 Bytes
| import type webpack from 'webpack' | |
| export function stringifyRequest( | |
| loaderContext: webpack.LoaderContext<any>, | |
| request: string | |
| ) { | |
| return JSON.stringify( | |
| loaderContext.utils.contextify( | |
| loaderContext.context || loaderContext.rootContext, | |
| request | |
| ) | |
| ) | |
| } | |