huang-julien / nuxt-auto-parallel-plugins

Set all your nuxt plugins as parallel by default, even those added by modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disabled parallel mode to imported plugins?

edimitchel opened this issue · comments

According to elk project, I tried the auto parallel plugins to figure it out how performent could be this plugin with a big project.
I encounter long cold start so I hope that auto parallel could reduce it.

But I hit a first problem : I have an issue about $t not accessible from the app probably because i18n was needed but not available yet because of the parallel mode was activated.

So my question here is : how to be able to disabled parallel mode to imported plugins?

Or am I wrong to think imported plugins are affected by your plugin?

Hi ! 👋
this module set the default of the parallel mode to true so if you need to disable parallel mode for plugins added by modules, the module author needs to provide a way to configure it.
Nuxt i18n support configuring this with the parallelPlugin option.
You can also wait for the dependsOn property coming in nuxt 3.9 to make your own plugin wait for some specific plugins before running it