From 2f21852a3e3c8e06161b5587baba486e1c1abecd Mon Sep 17 00:00:00 2001 From: Mark Acosta Date: Fri, 23 Oct 2026 22:23:43 +0000 Subject: [PATCH] Add explicit ./en subpath export Rollup-based bundlers (e.g. Vite production builds) do not resolve the "./*" exports pattern for "chrono-node/en", so importing the English-only locale fails to build without an explicit entry. Add an explicit "./en" export so consumers can import just the English locale (smaller bundle) from bundlers that only support explicit subpath entries. Verified: a Vite 6 production build importing "chrono-node/en" fails to resolve before this change and succeeds after. --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 33e0dd3a..abfac3ae 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,10 @@ "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js" }, + "./en": { + "require": "./dist/cjs/locales/en/index.js", + "import": "./dist/esm/locales/en/index.js" + }, "./*": { "require": "./dist/cjs/locales/*/index.js", "import": "./dist/esm/locales/*/index.js"