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
Copy file name to clipboardExpand all lines: cmp/compiler/src/plugin/transform/process-file.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
/**
2
-
* Keep mutations to the current node and children. e.g. do not mutate program inserting imports when processing the component. This should be done in the end.
2
+
* Keep mutations to the current node and children. Do not mutate program inserting imports when processing the component.
3
+
* This should be done in the end.
4
+
* The overall idea is that state is used for side effect tracking. When we exit relevant points, we check if we need to make extra changes at this level.
5
+
* e.g. when we transform elements to insert translations, we record their hashes and add the translation hook call when leaving the component.
0 commit comments