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

Update babel.config.js so build artifacts are compiled to ES5. #3304

Merged
merged 1 commit into from Dec 21, 2022

Commits on Dec 21, 2022

  1. Update babel.config.js so build artifacts are compiled to ES5.

    dts-cli will utilize the babel.config.js file on build. The `targets` option for the @babel/preset-env plugin will determine what features the compiled output will target. Per babel docs:
    
     > When no targets are specified: Babel will assume you are targeting the oldest browsers possible. For example, @babel/preset-env will transform all ES2015-ES2020 code to be ES5 compatible.
    
     This approach will allow us to continue to write ESNext code while we can be confident RJSF users will still consume ES5 code.
    nickgros committed Dec 21, 2022
    Copy the full SHA
    9557e6e View commit details
    Browse the repository at this point in the history