Download next.js/packages/next/src/build/webpack/config/utils.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/webpack/config/utils.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/build/webpack/config/utils.ts
-
curl -L -o utils.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/webpack/config/utils.ts
1.1 kB
| import type { webpack } from 'next/dist/compiled/webpack/webpack' | |
| import type { NextConfigComplete } from '../../../server/config-shared' | |
| export type ConfigurationContext = { | |
| // If the `appDir` feature is enabled | |
| hasAppDir: boolean | |
| // If the current rule matches a resource in the app layer | |
| isAppDir?: boolean | |
| supportedBrowsers: string[] | undefined | |
| rootDirectory: string | |
| customAppFile: RegExp | undefined | |
| isDevelopment: boolean | |
| isProduction: boolean | |
| isServer: boolean | |
| isClient: boolean | |
| isEdgeRuntime: boolean | |
| targetWeb: boolean | |
| assetPrefix: string | |
| sassOptions: any | |
| productionBrowserSourceMaps: boolean | |
| serverSourceMaps: boolean | |
| transpilePackages: NextConfigComplete['transpilePackages'] | |
| future: NextConfigComplete['future'] | |
| experimental: NextConfigComplete['experimental'] | |
| } | |
| export type ConfigurationFn = ( | |
| a: webpack.Configuration | |
| ) => webpack.Configuration | |
| export const pipe = | |
| <R>(...fns: Array<(a: R) => R | Promise<R>>) => | |
| (param: R) => | |
| fns.reduce( | |
| async (result: R | Promise<R>, next) => next(await result), | |
| param | |
| ) | |