From 8734f149363e7e10f326670bef7bd1363d4177d0 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 22 Sep 2021 12:20:08 -0700 Subject: [PATCH] Fix firestore exports field --- packages/firestore/lite/package.json | 2 +- packages/firestore/package.json | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/firestore/lite/package.json b/packages/firestore/lite/package.json index 662f61080cc..dbef6c78d6c 100644 --- a/packages/firestore/lite/package.json +++ b/packages/firestore/lite/package.json @@ -2,7 +2,7 @@ "name": "@firebase/firestore-lite", "description": "A lite version of the Firestore SDK", "main": "../dist/lite/index.node.cjs.js", - "main-esm": "../dist/lite/index.node.esm2017.js", + "main-esm": "../dist/lite/index.node.mjs", "module": "../dist/lite/index.browser.esm2017.js", "browser": "../dist/lite/index.browser.esm2017.js", "react-native": "../dist/lite/index.rn.esm2017.js", diff --git a/packages/firestore/package.json b/packages/firestore/package.json index dc2bc76713c..52b89319806 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -49,16 +49,22 @@ }, "exports": { ".": { - "node": "./dist/index.node.cjs.js", + "node": { + "require": "./dist/index.node.cjs.js", + "import": "./dist/index.node.mjs" + }, "default": "./dist/index.esm2017.js" }, "./lite": { - "node": "./dist/lite/index.node.cjs.js", + "node": { + "require": "./dist/lite/index.node.cjs.js", + "import": "./dist/lite/index.node.esm2017.js" + }, "default": "./dist/lite/index.browser.esm2017.js" } }, "main": "dist/index.node.cjs.js", - "main-esm": "dist/index.node.cjs.esm2017.js", + "main-esm": "dist/index.node.mjs", "react-native": "dist/index.rn.js", "browser": "dist/index.esm2017.js", "module": "dist/index.esm2017.js",