From 4edca1d55af33849be362a3568c6f3202aadf800 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 16 Dec 2024 01:33:58 +0000 Subject: [PATCH] fix(theme): implement 'exports' field in themes/theme/package.json (#708) Partial fix for #613 and #680. --- themes/theme/package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/themes/theme/package.json b/themes/theme/package.json index 5d10c9d6a..c207d53f8 100644 --- a/themes/theme/package.json +++ b/themes/theme/package.json @@ -8,6 +8,13 @@ "license": "MIT", "main": "./cjs/index.js", "module": "./esm/index.js", + "exports": { + ".": { + "require": "./cjs/index.js", + "import": "./esm/index.js" + }, + "./*": "./*" + }, "scripts": { "watch": "tsbb watch src/*.tsx --use-babel", "build": "tsbb build src/*.tsx --use-babel"