You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a project with Google Closure Compiler (Advarnced) that imports firebase, then some util modules are being shaken off. That should stay in the code.
For some reason functions like deepCopy, createSubscribe and more, are removed from the build but still referent to in util/dist/esm/index.js. This results in variables not defined. Uncaught ReferenceError: module$node_modules$$firebase$util$dist$esm$src$deepCopy is not defined
From the exported file. (The variables that does not have a $ prefix, are modules that were shaken away)
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When building a project with Google Closure Compiler (Advarnced) that imports firebase, then some util modules are being shaken off. That should stay in the code.
For some reason functions like deepCopy, createSubscribe and more, are removed from the build but still referent to in util/dist/esm/index.js. This results in variables not defined.
Uncaught ReferenceError: module$node_modules$$firebase$util$dist$esm$src$deepCopy is not defined
From the exported file. (The variables that does not have a $ prefix, are modules that were shaken away)
Steps to reproduce:
Flag used to tree shake
--dependency_mode=STRICT
NOTE: I have used the fix in #370 to build with Closure Compiler
Relevant Code:
The text was updated successfully, but these errors were encountered: