src/common/transformers/ebayui-attribute/index.js
function transform(el, context) {
    // Only runs on top level ebay ui templates (skips demos).
    const isEbayUIComponentFile = COMPONENT_FILES.indexOf(context.filename) !== -1;

    if (isEbayUIComponentFile && el.hasAttribute('w-bind')) {
        el.setAttributeValue('data-ebayui', context.builder.literal(true));
    }
}
function transform(el, context) {
    // Only runs on top level ebay ui templates (skips demos).
    const isEbayUIComponentFile = COMPONENT_FILES.indexOf(context.filename) !== -1;

    if (isEbayUIComponentFile && el.hasAttribute('w-bind')) {
        el.setAttributeValue('data-ebayui', context.builder.literal(true));
    }
}
function transform ( el , context ) { // Only runs on top level ebay ui templates (skips demos). const isEbayUIComponentFile = COMPONENT_FILES . indexOf ( context . filename ) !== - 1 ; if ( isEbayUIComponentFile && el . hasAttribute ( 'w-bind' ) ) { el . setAttributeValue ( 'data-ebayui' , context . builder . literal ( true ) ) ; } }
Transform to add the `data-ebayui` attribute to top level elements for all components.

@param {Object} el
@param {Object} context
Transform to add the data - ebayui attribute to top level elements for all components .