We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ac47f commit 6c8eabfCopy full SHA for 6c8eabf
packages/firestore-compat/tools/console.build.js
@@ -57,19 +57,15 @@ const es5OutputOptions = {
57
format: 'iife'
58
};
59
60
-const PREFIX = `
61
-goog.module('firestore');
62
-exports = eval(`;
63
-
64
-const POSTFIX = ` + '${EXPORTNAME};');`;
+const POSTFIX = `window['${EXPORTNAME}']=${EXPORTNAME};`;
65
66
async function build() {
67
const es5Bundle = await rollup.rollup(es5InputOptions);
68
const {
69
output: [{ code }]
70
} = await es5Bundle.generate(es5OutputOptions);
71
72
- const output = `${PREFIX}${JSON.stringify(String(code))}${POSTFIX}`;
+ const output = `${String(code)}${POSTFIX}`;
73
74
if (!fs.existsSync(OUTPUT_FOLDER)) {
75
fs.mkdirSync(OUTPUT_FOLDER);
0 commit comments