%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/next/dist/build/babel/plugins/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/next/dist/build/babel/plugins/amp-attributes.js

"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = AmpAttributePatcher;
function AmpAttributePatcher() {
    return {
        visitor: {
            JSXOpeningElement (path) {
                const openingElement = path.node;
                const { name , attributes  } = openingElement;
                if (!(name && name.type === "JSXIdentifier")) {
                    return;
                }
                if (!name.name.startsWith("amp-")) {
                    return;
                }
                for (const attribute of attributes){
                    if (attribute.type !== "JSXAttribute") {
                        continue;
                    }
                    if (attribute.name.name === "className") {
                        attribute.name.name = "class";
                    }
                }
            }
        }
    };
}

//# sourceMappingURL=amp-attributes.js.map

Zerion Mini Shell 1.0