Skip to content

Commit

Permalink
Fixes an unicode encoding issue in firebase-auth.js (#3813)
Browse files Browse the repository at this point in the history
* escape unicodes

* Create honest-doors-poke.md
  • Loading branch information
Feiyang1 committed Sep 21, 2020
1 parent 4c4b2d1 commit 7bf7379
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/honest-doors-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"firebase": patch
---

Escape unicodes when generating CDN scripts, so they work correctly in environments that requires UTF-8, for example, in Chrome extension.
9 changes: 8 additions & 1 deletion packages/firebase/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ const componentBuilds = pkg.components
{
input: `${component}/index.ts`,
output: createUmdOutputConfig(`firebase-${component}.js`),
plugins: [...plugins, uglify()],
plugins: [
...plugins,
uglify({
output: {
ascii_only: true // escape unicode chars
}
})
],
external: ['@firebase/app']
}
];
Expand Down

0 comments on commit 7bf7379

Please sign in to comment.