Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@pmmmwh /react-refresh-webpack-plugin /lib /utils /getIntegrationEntry.js
Download frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/getIntegrationEntry.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/lib/utils/getIntegrationEntry.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/getIntegrationEntry.js
-
curl -L -o getIntegrationEntry.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/lib/utils/getIntegrationEntry.js
606 Bytes
| /** | |
| * Gets entry point of a supported socket integration. | |
| * @param {'wds' | 'whm' | 'wps' | string} integrationType A valid socket integration type or a path to a module. | |
| * @returns {string | undefined} Path to the resolved integration entry point. | |
| */ | |
| function getIntegrationEntry(integrationType) { | |
| let resolvedEntry; | |
| switch (integrationType) { | |
| case 'whm': { | |
| resolvedEntry = 'webpack-hot-middleware/client'; | |
| break; | |
| } | |
| case 'wps': { | |
| resolvedEntry = 'webpack-plugin-serve/client'; | |
| break; | |
| } | |
| } | |
| return resolvedEntry; | |
| } | |
| module.exports = getIntegrationEntry; | |