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',