Skip to content
Source
Sign inSign up
TanStack/router

fix(start-plugin-core): drop parsed AST after import analysis to avoid dev memory leak #8682

Openlx3133584(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8682/headopened

Showing 4 changed files with 21 additions and 8 deletions (loading 1).

x
0 of 4 viewed, 4 left
5 additions and 0 deletions.changeset/import-protection-drop-ast.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/start-plugin-core': patch
+---
+​
+Avoid retaining parsed module ASTs in cached import analysis to reduce dev memory overhead
1 addition and 1 deletionpackages/start-plugin-core/src/import-protection/INTERNALS.mdModified
View file
@@ -27,7 +27,7 @@
​
`ImportAnalysis` contains:
​
-- parsed AST
+- optional parsed AST (dropped after analysis to save dev memory)
- line index
- import sources in source order
- import specifier literal locations
15 additions and 7 deletionspackages/start-plugin-core/src/import-protection/analysis.tsModified
View file
@@ -21,7 +21,7 @@