Next.js Discord

Discord Forum

Where does turbopack live in node_modules?

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
I would like to mess around with it in my project and see how it works. I see some rust files in the nextjs repo, but I could not figure out how it gets executed.

6 Replies

@@ts-ignore those files get compiled into a binary and then invoked by ffi most probably or some other interface
Spectacled bearOP
I don’t see ffi anywhere in the repo
@Spectacled bear I don’t see ffi anywhere in the repo
then they might be using some other way to do it
you can read source code of next and its --turbo flag
Spectacled bearOP
Ok I’ll get back to you on this