From 02d9bb0518049fae74d7f94e193e2edcdf6d235b Mon Sep 17 00:00:00 2001 From: Yi Ding <yi.s.ding@gmail.com> Date: Mon, 24 Jul 2023 05:22:14 -0700 Subject: [PATCH] the ESM export is causing issues with edge functions Looks like there's another issue with axios. Will turn ESM bundles back on once we fix it and the PDF issue --- .changeset/olive-eyes-hang.md | 5 +++++ packages/core/package.json | 12 ------------ 2 files changed, 5 insertions(+), 12 deletions(-) create mode 100644 .changeset/olive-eyes-hang.md diff --git a/.changeset/olive-eyes-hang.md b/.changeset/olive-eyes-hang.md new file mode 100644 index 000000000..49f6cd6a5 --- /dev/null +++ b/.changeset/olive-eyes-hang.md @@ -0,0 +1,5 @@ +--- +"llamaindex": patch +--- + +Remove ESM export for now (causing issues with edge functions) diff --git a/packages/core/package.json b/packages/core/package.json index eb0ca421b..fc0b39b9a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -23,18 +23,6 @@ "engines": { "node": ">=18.0.0" }, - "exports": { - ".": { - "import": { - "types": "./dist/index.d.mts", - "default": "./dist/index.mjs" - }, - "require": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - } - }, "types": "./dist/index.d.ts", "main": "./dist/index.js", "scripts": { -- GitLab