Download next.js/packages/next/src/shared/lib/isomorphic/path.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/isomorphic/path.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/shared/lib/isomorphic/path.js
-
curl -L -o path.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/isomorphic/path.js
355 Bytes
| /** | |
| * This module is for next.js server internal usage of path module. | |
| * It will use native path module for nodejs runtime. | |
| * It will use path-browserify polyfill for edge runtime. | |
| */ | |
| let path | |
| if (process.env.NEXT_RUNTIME === 'edge') { | |
| path = require('next/dist/compiled/path-browserify') | |
| } else { | |
| path = require('path') | |
| } | |
| module.exports = path | |