expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
358 stars 106 forks source link

Support dependencies using ESM `exports` #359

Open byCedric opened 1 year ago

byCedric commented 1 year ago

Right now, all packages using the ESM exports are failing to be bundled with Snackager. Unfortunately, Metro/RN lacks support for these dependencies as of writing.

Luckily, this is changing with the "Metro package exports support" RFC. Once this is finalized, we can also work on supporting this in Snackager.

All issues related to this are marked with the label snackager - exports support

anzorb commented 1 year ago

It appears that commonjs packages bundled with target "ES6" are failing to compile as well. See https://forums.expo.dev/t/unable-to-resolve-module-module-babel-runtime-helpers-interoprequiredefault-js/68960/2. Let me know if you need more info.

Thank you!