From 547e104af9c9f0979f21557e4d4c9e5af4b4b5fa Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Thu, 8 Aug 2024 18:21:22 +0530 Subject: [PATCH] fix: Support `require` (#3908) --- packages/toolpad-core/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/toolpad-core/package.json b/packages/toolpad-core/package.json index 26c6a683aba..048da3c5a04 100644 --- a/packages/toolpad-core/package.json +++ b/packages/toolpad-core/package.json @@ -8,11 +8,13 @@ "./package.json": "./package.json", ".": { "types": "./build/index.d.ts", - "default": "./build/index.js" + "import": "./build/index.js", + "require": "./build/node/index.js" }, "./*": { "types": "./build/*/index.d.ts", - "default": "./build/*/index.js" + "import": "./build/*/index.js", + "require": "./build/node/*/index.js" } }, "keywords": [