From 4a626fff0dd18eb05550228af10700c97ceb522b Mon Sep 17 00:00:00 2001 From: Keitaroh Kobayashi Date: Fri, 18 Oct 2024 17:34:46 +0900 Subject: [PATCH] Re-introduce main and types fields in package.json (#243) * Re-introduce main and types fields in package.json TypeScript with "moduleResolution": "node" won't look at at the "exports" field, so we add main and types for backward compatibility Ref #242 * Use explicit mjs file extensions in build outputs, update jav2 for ESM/CJS interoperability. --- .gitignore | 2 +- demo/index.html | 2 +- package-lock.json | 8 ++++---- package.json | 10 ++++++---- rollup.config.js | 6 ++++-- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index dcd90626ee..86d6207fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ # production /build -/demo/main-browser-esm.js* +/demo/main-browser-esm.mjs* # misc .DS_Store diff --git a/demo/index.html b/demo/index.html index 92a70e7a85..3551e3f2af 100644 --- a/demo/index.html +++ b/demo/index.html @@ -21,7 +21,7 @@

住所正規化デモ