Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/shaders/index.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/index.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/shaders/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/index.js
746 Bytes
| // This file is intended for use in the GL-JS test suite | |
| // It provides the shaders entry point for Node (tests and GL Native) | |
| // In a browser environment, this file is replaced with ./src/shaders/shaders.js | |
| // when Rollup builds the main bundle. | |
| // See package.json#browser | |
| /* eslint-disable import/unambiguous, import/no-commonjs, flowtype/require-valid-file-annotation, no-global-assign */ | |
| const fs = require('fs'); | |
| // enable ES Modules in Node | |
| require = require("esm")(module); | |
| // enable requiring GLSL in Node | |
| require.extensions['.glsl'] = function (module, filename) { | |
| const content = fs.readFileSync(filename, 'utf8'); | |
| module._compile(`module.exports = \`${content}\``, filename); | |
| }; | |
| module.exports = require("./shaders.js"); | |