diff --git a/CHANGELOG.md b/CHANGELOG.md index 4812d51571..ec94d78d31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ should change the heading of the (upcoming) version to include a major version b # @rjsf/core - Pass the `schema` along to the `ArrayFieldItemTemplate` as part of the fix for [#3253](https://github.com/rjsf-team/react-jsonschema-form/issues/3253) +- Tweak Babel configuration to emit ES5-compatible output files, fixing [#3240](https://github.com/rjsf-team/react-jsonschema-form/issues/3240) # @rjsf/utils - Update the `ArrayFieldItemTemplate` to add `schema` as part of the fix for [#3253](https://github.com/rjsf-team/react-jsonschema-form/issues/3253) diff --git a/babel.config.js b/babel.config.js index d05bbc8a1c..614641eefd 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,7 +1,7 @@ const BABEL_ENV = process.env.BABEL_ENV; const IS_TEST = BABEL_ENV === "test" const ignore = IS_TEST ? [] : ['test/**/*.js'] -const targets = IS_TEST ? { node: "current" } : { browsers: "defaults" } +const targets = IS_TEST ? { node: "current" } : {} module.exports = { presets: [