Содеержимое файла
mainWidgets.ts:
/* eslint-disable sonarjs/no-duplicate-string */
const mainWidgets = [
{
container: '.cooperation-list',
controller: (): void => {
import(/* webpackChunkName: "swiper_style" */ 'widgets/shaked_swiper.scss');
import(/* webpackChunkName: "cooperation_slider" */ 'widgets/cooperation_slider.scss');
},
},
{
container: '.kh-cookie-section',
controller: (): void => {
import(/* webpackChunkName: "cookie_section" */ 'widgets/cookie_section.scss');
},
},
...
];
export default mainWidgets;
Простой
// @ts-ignore - не вариант. Нужно решение(