jaredpalmer / razzle

✨ Create server-rendered universal JavaScript applications with no configuration

Home Page:https://razzlejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to avoid looking node_modules while compiling client?

Bhavin789 opened this issue · comments

❓Question

Hi

I have set up razzle with babel and when I do a razzle start, the client compilation takes about ~1.3 minutes to complete (its a huge project 😢). What I observed was, it was reading everything from the node_modules folder and the rest of the TS code while compiling the client. Not sure if that is something that is taking the time.

Is there a way to avoid looking into node_modules folder which might speed up the process? What I am assuming is, the node_modules lookup is what is taking the most time. I might be missing something here.

Config

razzle version: 4.0.5
babel version: 7.18.2

Thanks in advance!!