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
// rewrite imports from `@angular/fire/*` to `@angular/fire/compat/*`
45
-
// rewrite imports from `firebase/*` to `firebase/compat/*`
46
-
// rewrite imports from `@firebase/*` to `@firebase/compat/*`
48
+
// TODO clean this up
49
+
content.replace(/(?<key>import|export)\s+(?:(?<alias>[\w,{}\s\*]+)\s+from)?\s*(?:(["'])?firebase\/(?<ref>[@\w\s\\\/.-]+)\3?)\s*;/,"$1 $2 from $3firebase/compat/$4$3;");
50
+
content.replace(/(?<key>import|export)\s+(?:(?<alias>[\w,{}\s\*]+)\s+from)?\s*(?:(["'])?@firebase\/(?<ref>[@\w\s\\\/.-]+)\3?)\s*;/,"$1 $2 from $3@firebase/compat/$4$3;");
51
+
content.replace(/(?<key>import|export)\s+(?:(?<alias>[\w,{}\s\*]+)\s+from)?\s*(?:(["'])?@angular\/fire\/(?<ref>[@\w\s\\\/.-]+)\3?)\s*;/,"$1 $2 from $3@angular/fire/compat/$4$3;");
0 commit comments