From df2da72da19679e3e0284fefeeb3d54a7105dcb7 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Wed, 28 Feb 2024 16:22:41 +0000 Subject: [PATCH] fix(build): Add types: and default: entries to exports['./core'] In the 'blockly/core' export: - Replace the browser: entrypoint with a default: one. - Add a types: entrypoint for core. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 686674621bf..86ed370722a 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,9 @@ "default": "./index.js" }, "./core": { - "browser": "./blockly_compressed.js", - "node": "./core-node.js" + "types": "./core.d.ts", + "node": "./core-node.js", + "default": "./blockly_compressed.js" }, "./blocks": { "types": "./blocks.d.ts",