react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /next-dynamic /member-with-same-name /output-dev.js
Download next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-dev.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-dev.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-dev.js
-
curl -L -o output-dev.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-dev.js
325 Bytes
| import dynamic from 'next/dynamic'; | |
| import somethingElse from 'something-else'; | |
| const DynamicComponent = dynamic(()=>import('../components/hello'), { | |
| loadableGenerated: { | |
| modules: [ | |
| "src/some-file.js -> " + "../components/hello" | |
| ] | |
| } | |
| }); | |
| somethingElse.dynamic('should not be transformed'); | |