Skip to content

Commit 7971ad5

Browse files
dlarocquetom-andersen
authored andcommitted
Emit a module package file into esm2017 auth webextension bundle (#8191)
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
1 parent fd81dd2 commit 7971ad5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/real-ravens-prove.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/auth': patch
3+
---
4+
5+
Emit a module package file with esm2017 auth browser extension builds

packages/auth/rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ const browserWebExtensionBuilds = [
125125
},
126126
plugins: [
127127
...es2017BuildPlugins,
128-
replace(generateBuildTargetReplaceConfig('esm', 2017))
128+
replace(generateBuildTargetReplaceConfig('esm', 2017)),
129+
emitModulePackageFile()
129130
],
130131
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
131132
},

0 commit comments

Comments
 (0)