Capacitor WebPlugin config object was deprecated in v3 and will be removed in v4


I am getting this in 3 plugins. They all work, but I always get this message. The index.ts file is as follows:

import { registerPlugin } from ‘@capacitor/core’;

import type { TestPlugin } from ‘./definitions’;

const Test = registerPlugin(‘Test’, {
web: () => import(‘./web’).then(m => new m.TestWeb()),

export * from ‘./definitions’;
export { Test };

The plugin uses capacitor core v5.4.1

Can someone tell me what causes this message please?