Package Exports
- babel-preset-expo
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-preset-expo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-preset-expo
If you have problems with the code in this repository, please file issues & bug reports at https://github.com/expo/expo. Thanks!
Options
web.transformImportExport
Enabling this option will allow your project to run with older JavaScript syntax (i.e. module.exports
). This option will break tree shaking and increase your bundle size, but will eliminate the following error when module.exports
is used:
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
default: false
[
'babel-preset-expo',
{
web: { transformImportExport: true }
}
],