Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@pmmmwh /react-refresh-webpack-plugin /lib /globals.js
Download frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/globals.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/lib/globals.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/globals.js
-
curl -L -o globals.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/lib/globals.js
843 Bytes
| /** | |
| * Gets current bundle's global scope identifier for React Refresh. | |
| * @param {Record<string, string>} runtimeGlobals The Webpack runtime globals. | |
| * @returns {string} The React Refresh global scope within the Webpack bundle. | |
| */ | |
| module.exports.getRefreshGlobalScope = (runtimeGlobals) => { | |
| return `${runtimeGlobals.require || '__webpack_require__'}.$Refresh$`; | |
| }; | |
| /** | |
| * Gets current Webpack version according to features on the compiler instance. | |
| * @param {import('webpack').Compiler} compiler The current Webpack compiler instance. | |
| * @returns {number} The current Webpack version. | |
| */ | |
| module.exports.getWebpackVersion = (compiler) => { | |
| if (!compiler.hooks) { | |
| throw new Error(`[ReactRefreshPlugin] Webpack version is not supported!`); | |
| } | |
| // Webpack v5+ implements compiler caching | |
| return 'cache' in compiler ? 5 : 4; | |
| }; | |