Skip to content

Commit d52cbf3

Browse files
authored
Merge bb088ed into 0986b92
2 parents 0986b92 + bb088ed commit d52cbf3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/honest-doors-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"firebase": patch
3+
---
4+
5+
Escape unicodes when generating CDN scripts, so they work correctly in environments that requires UTF-8, for example, in Chrome extension.

packages/firebase/rollup.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ const componentBuilds = pkg.components
135135
{
136136
input: `${component}/index.ts`,
137137
output: createUmdOutputConfig(`firebase-${component}.js`),
138-
plugins: [...plugins, uglify()],
138+
plugins: [
139+
...plugins,
140+
uglify({
141+
output: {
142+
ascii_only: true // escape unicode chars
143+
}
144+
})
145+
],
139146
external: ['@firebase/app']
140147
}
141148
];

0 commit comments

Comments
 (0)