rag-context-optimizer / frontend /node_modules /next /dist /esm /next-devtools /shared /webpack-module-path.js
Download frontend/node_modules/next/dist/esm/next-devtools/shared/webpack-module-path.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 823 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/next-devtools/shared/webpack-module-path.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/esm/next-devtools/shared/webpack-module-path.js
-
curl -L -o webpack-module-path.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/next-devtools/shared/webpack-module-path.js
823 Bytes
| const replacementRegExes = [ | |
| /^webpack-internal:\/\/\/(\([\w-]+\)\/)?/, | |
| /^(webpack:\/\/\/|webpack:\/\/(_N_E\/)?)(\([\w-]+\)\/)?/ | |
| ]; | |
| export function isWebpackInternalResource(file) { | |
| for (const regex of replacementRegExes){ | |
| if (regex.test(file)) return true; | |
| file = file.replace(regex, ''); | |
| } | |
| return false; | |
| } | |
| /** | |
| * Format the webpack internal id to original file path | |
| * | |
| * webpack-internal:///./src/hello.tsx => ./src/hello.tsx | |
| * webpack://_N_E/./src/hello.tsx => ./src/hello.tsx | |
| * webpack://./src/hello.tsx => ./src/hello.tsx | |
| * webpack:///./src/hello.tsx => ./src/hello.tsx | |
| */ export function formatFrameSourceFile(file) { | |
| for (const regex of replacementRegExes){ | |
| file = file.replace(regex, ''); | |
| } | |
| return file; | |
| } | |
| //# sourceMappingURL=webpack-module-path.js.map |