Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@pmmmwh /react-refresh-webpack-plugin /loader /utils /normalizeOptions.js
Download frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/utils/normalizeOptions.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/loader/utils/normalizeOptions.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/utils/normalizeOptions.js
-
curl -L -o normalizeOptions.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/loader/utils/normalizeOptions.js
634 Bytes
| const { d, n } = require('../../options'); | |
| /** | |
| * Normalizes the options for the loader. | |
| * @param {import('../types').ReactRefreshLoaderOptions} options Non-normalized loader options. | |
| * @returns {import('../types').NormalizedLoaderOptions} Normalized loader options. | |
| */ | |
| const normalizeOptions = (options) => { | |
| d(options, 'const', false); | |
| n(options, 'esModule', (esModule) => { | |
| if (typeof esModule === 'boolean' || typeof esModule === 'undefined') { | |
| return esModule; | |
| } | |
| d(esModule, 'include'); | |
| d(esModule, 'exclude'); | |
| return esModule; | |
| }); | |
| return options; | |
| }; | |
| module.exports = normalizeOptions; | |