Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect babel imports in CJS/ESM builds #2157

Merged
merged 1 commit into from
Mar 23, 2022

Commits on Mar 22, 2022

  1. fix: incorrect babel imports in CJS/ESM builds

    Fixes CJS/ESM build issues caused by react-app preset.
    
    Since CRA's babel preset is being used, there's a bit of inconsistency causing build issues. This
    commit resolves that by passing `useESModules: true` as an option into `babel-preset-react-app`.
    
    It also restores the `lodash-es` replacement present in 0.39.3 by keeping a separate babel config
    for ESM builds.
    Sangeeth Sudheer committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    1532153 View commit details
    Browse the repository at this point in the history