Skip to content

Commit bf65146

Browse files
Format
1 parent d2bf6d7 commit bf65146

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/firestore/rollup.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ function importMetaUrlPolyfillPlugin(filename) {
4343
resolveImportMeta(property, { moduleId }) {
4444
if (property === 'url') {
4545
// copied from rollup output
46-
return "(typeof document === 'undefined' ? new (require('url').URL)"
47-
+ "('file:' + __filename).href : (document.currentScript && "
48-
+ `document.currentScript.src || new URL('${filename}', `
49-
+ "document.baseURI).href))";
46+
return (
47+
"(typeof document === 'undefined' ? new (require('url').URL)" +
48+
"('file:' + __filename).href : (document.currentScript && " +
49+
`document.currentScript.src || new URL('${filename}', ` +
50+
'document.baseURI).href))'
51+
);
5052
}
5153
return null;
5254
}

0 commit comments

Comments
 (0)