diff --git a/.changeset/real-ravens-prove.md b/.changeset/real-ravens-prove.md new file mode 100644 index 00000000000..ea2ecca2171 --- /dev/null +++ b/.changeset/real-ravens-prove.md @@ -0,0 +1,5 @@ +--- +'@firebase/auth': patch +--- + +Emit a module package file with esm2017 auth browser extension builds diff --git a/packages/auth/rollup.config.js b/packages/auth/rollup.config.js index c31417ca1a4..46d3ee0380d 100644 --- a/packages/auth/rollup.config.js +++ b/packages/auth/rollup.config.js @@ -125,7 +125,8 @@ const browserWebExtensionBuilds = [ }, plugins: [ ...es2017BuildPlugins, - replace(generateBuildTargetReplaceConfig('esm', 2017)) + replace(generateBuildTargetReplaceConfig('esm', 2017)), + emitModulePackageFile() ], external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`)) },