From c1366a21adfedc57e27edb70b4f2fcd18f538845 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 8 Jun 2022 11:42:25 -0700 Subject: [PATCH] Fix Node ESM bundle to build from Node entry point. --- .changeset/mean-seals-poke.md | 5 +++++ packages/storage/rollup.config.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/mean-seals-poke.md diff --git a/.changeset/mean-seals-poke.md b/.changeset/mean-seals-poke.md new file mode 100644 index 00000000000..a0e69fcc295 --- /dev/null +++ b/.changeset/mean-seals-poke.md @@ -0,0 +1,5 @@ +--- +'@firebase/storage': patch +--- + +Fixed Node ESM bundle to build from Node entry point. (It was incorrectly using the browser entry point.) diff --git a/packages/storage/rollup.config.js b/packages/storage/rollup.config.js index aeaedaf32fb..4bcb603de3a 100644 --- a/packages/storage/rollup.config.js +++ b/packages/storage/rollup.config.js @@ -143,7 +143,7 @@ const nodeBuilds = [ } }, { - input: './src/index.ts', + input: './src/index.node.ts', output: { file: pkg.exports['.'].node.import, format: 'esm',