https://github.com/jsdom/jsdom isn't meant for the browser at all, but rather Node.js. When attempting to use this through snowpack in a file that only executes in SSR I get the following three errors when calling snowpack.startServer:
[esinstall:jsdom] polyfill-node:__http-lib/request.js
Import "./capability" could not be resolved from file.
[esinstall:jsdom] polyfill-node:__http-lib/request.js
Import "./response" could not be resolved from file.
[esinstall:jsdom] polyfill-node:__http-lib/request.js
Import "./to-arraybuffer" could not be resolved from file.
https://github.com/jsdom/jsdom isn't meant for the browser at all, but rather Node.js. When attempting to use this through snowpack in a file that only executes in SSR I get the following three errors when calling
snowpack.startServer
: