You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to narrow the problem to that fact that my module has type: "module" and I was able to reproduce the problem outside of snackager with raw webpack and presets: [ 'module:metro-react-native-babel-preset']
Refs: expo#299
Refs: microsoft/rnx-kit#142
The Metro Babel preset does not produce correct output
for packages containing "type": "module" unless
the disableImportExportTransform options is used to
prevent it from including @babel/plugin-transform-modules-commonjs
Summary
My module exports a
main
and amodule
with themodule
using ES6 syntax which makes Babel to insert a couple of helpers:What platform(s) does this occur on?
Web
SDK Version
v44.0.0
Reproducible demo or steps to reproduce from a blank project
https://snack.expo.dev/@mmomtchev/@mmomtchev-react-native-settings
The text was updated successfully, but these errors were encountered: