How to disable all animation when using ionic in plain javascript?

I want to disable all the animation of the ionic components using ionic. I tried with:

import { setupConfig } from '/node_modules/@ionic/core/dist/esm/index.js';

setupConfig({
  mode: 'md',
  animate: false
});

but it does not do anything. What is the correct way to do this?

Thanks

Hi

Without knowing for sure if it helps but looking ar ionic core source - global part, there is this initialize function in core that initialises stuff

And I suspect that needs to run if you use import and likely it sets everything straight according to config

U doing that too?