From 90b05ed73f46e7889a5db73c3c6ab5d49dfbf8b0 Mon Sep 17 00:00:00 2001 From: Heath Chiavettone Date: Wed, 5 Mar 2025 13:57:27 -0800 Subject: [PATCH] Fixed core ESM builds There are two `tsconfig.json` files in core and the second one in `src` also needed the `tsc-alias` block - Updated the `src/tsconfig.json` to add the `tsc-alias` block to support proper building of the ESM version --- CHANGELOG.md | 6 ++++++ packages/core/src/tsconfig.json | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef9c5d819..c66b50762b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,12 @@ it according to semantic versioning. For example, if your PR adds a breaking cha should change the heading of the (upcoming) version to include a major version bump. --> +# 5.24.6 + +## @rjsf/core + +- Fixed `src/tsconfig.json` to add the `tsc-alias` block to support proper fixing up of ESM import + # 5.24.5 ## @rjsf/utils diff --git a/packages/core/src/tsconfig.json b/packages/core/src/tsconfig.json index d2e6a35741..fe2440fd6b 100644 --- a/packages/core/src/tsconfig.json +++ b/packages/core/src/tsconfig.json @@ -19,5 +19,15 @@ { "path": "../../validator-ajv8" } - ] + ], + "tsc-alias": { + "resolveFullPaths": true, + "verbose": true, + "replacers": { + "lodash": { + "enabled": true, + "file": "lodashReplacer.js" + } + } + } }