Magento 2 Override PageBuilder carousel/widget.js

I want to extend the 'initSlider' function from 'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget'in my custom model with mixin.

var config = {
    config: {
        mixins: {
            'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget': {
                'Vendor_Module/js/product-carousel-widget-mixin': true
            }
        }
    }
};


define([
    'jquery',
    'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget'
], function ($, CarouselWidget) {
    'use strict';

    return function (target) {
        return target.extend({
            initSlider: function () {
                
                this._super();
            }
        });
    };
});

If my mixin is in use, the core-file isnt running. When I change to false in the require-js.js file the core file is running.

Someone can help me?
Was this page helpful?