Adding aws-amplify libs adds 5s each time I change a line of code

So after adding "aws-amplify": "^5.0.15", to my project, as well as
{
find: "./runtimeConfig",
replacement: "./runtimeConfig.browser",
},
{
find: "./runtimeConfig",
replacement: "./runtimeConfig.browser",
},
to my vite.config.ts, I managed to get aws to work, but now each time I change a line of code, vite takes 5s to reload everything. Is anyone seeing similar slow-downs with aws?
1 Reply
Bersaelor
Bersaelor16mo ago
ah, mhmm, I'm working on a chrome extension, and i'm actually building a new website build to dist every time. Before aws that took 500ms, with aws it takes 5s , it spends 4s in node_modules/@aws-sdk alone I wonder if there is a way not somehow cache the @aws-sdk folders contribution to the final built ddist