It would work like this if the npm dependencies was not loaded from a Hugo module. Since Hugo now can do PostCSS and JS processing (ESBuild) I would like to avoid having to install more tooling to compile the JS.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Hugo v0.78 & js.Bundle: no support for importing from node_modules? | 9 | 946 | November 4, 2020 | |
| js.Build resolve behaviour changes in 0.78.1 | 5 | 786 | December 29, 2020 | |
| JS Build Error on Build - node modules not found | 7 | 359 | July 2, 2024 | |
| Importing from node_modules with js.Build uses "require" / CommonJS | 3 | 1078 | June 7, 2021 | |
| ESBuild: Looks like we can finally get solid Hugo Modules support | 19 | 4213 | May 20, 2021 |