Skip to content

Conversation

@jwoertink
Copy link
Member

Fixes #908

Looks like maybe Laravel did the same.

From what I could tell, the Vite watcher was watching every single file. There doesn't seem to be a "only watch these folders" so instead I'm doing a "ignore everything except these" and listing just folders where your js/css assets would go. Once I got this into a local project, I got a massive performance boost on loading pages, and no more memory leak error. However, the "logout" link wouldn't work so I had to make the main js_link a type: "module".

The last thing I had to do was tell the sourcemap to be true instead of inline. I guess the inline option holds it all in memory.

Now, with all this working, there is still some weirdness, but I'll open a separate issue on that.

…e whole project. This fixes the memory leak. Added type module to the script so imports work. Fixes #908
@jwoertink jwoertink merged commit d0ace9f into main Jan 23, 2026
12 checks passed
@jwoertink jwoertink deleted the issues/908 branch January 23, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite integration issues - JavaScript heap out of memory

1 participant