Skip to content

Commit

Permalink
Emit a module package file into esm2017 auth webextension bundle
Browse files Browse the repository at this point in the history
The Firebase Auth webextension bundle was previously being shipped as a
CommonJS package rather than a ES module, because it did not have a
module package file indicating that it was an ES module.

Fixes #8115
  • Loading branch information
dlarocque committed Apr 19, 2024
1 parent 71ab2f5 commit 3958b10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/auth/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}/`))
},
Expand Down

0 comments on commit 3958b10

Please sign in to comment.