okikio / bundlejs

An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
https://bundlejs.com
MIT License
729 stars 14 forks source link

Can't load jest@29.7.0 #70

Open exoego opened 4 months ago

exoego commented 4 months ago
// Click Build for the Bundled, Minified & Compressed package size
export * from "jest@29.7.0";
export { default as jestDefault } from "jest@29.7.0";

results in

✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/jest-resolve@29.7.0/build/default_resolver

http-url:https://unpkg.com/jest-pnp-resolver@1.2.3/getDefaultResolver:8:32:

      8 │ ...tResolver = require(`jest-resolve/build/default_resolver`).default;
        ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
okikio commented 1 month ago

CleanShot 2024-06-10 at 16 24 54@2x

CleanShot 2024-06-10 at 16 23 06@2x

CleanShot 2024-06-10 at 16 24 02@2x

It seems the issue is that esbuild tries to fetch both of these imports which leads to an error, because default_resolver doesn't exist. I'm looking into potential solutions