/opt/canhelp/node_modules/next/dist/esm/build/babel/plugins
NameSizeModeActions
amp-attributes.js8430644editdlrm
amp-attributes.js.map15170644editdlrm
commonjs.js10130644editdlrm
commonjs.js.map18490644editdlrm
jsx-pragma.js33120644editdlrm
jsx-pragma.js.map64040644editdlrm
next-font-unsupported.js12270644editdlrm
next-font-unsupported.js.map17770644editdlrm
next-page-config.js88370644editdlrm
next-page-config.js.map124240644editdlrm
next-page-disallow-re-export-all-exports.js9680644editdlrm
next-page-disallow-re-export-all-exports.js.map14770644editdlrm
next-ssg-transform.js159830644editdlrm
next-ssg-transform.js.map248310644editdlrm
optimize-hook-destructuring.js22880644editdlrm
optimize-hook-destructuring.js.map46090644editdlrm
react-loadable-plugin.js77770644editdlrm
react-loadable-plugin.js.map126550644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/build/babel/plugins/amp-attributes.js.map (1517B)
{"version":3,"sources":["../../../../src/build/babel/plugins/amp-attributes.ts"],"sourcesContent":["import type { NodePath, types, PluginObj } from 'next/dist/compiled/babel/core'\n\nexport default function AmpAttributePatcher(): PluginObj {\n return {\n visitor: {\n JSXOpeningElement(path: NodePath) {\n const openingElement = path.node\n\n const { name, attributes } = openingElement\n if (!(name && name.type === 'JSXIdentifier')) {\n return\n }\n\n if (!name.name.startsWith('amp-')) {\n return\n }\n\n for (const attribute of attributes) {\n if (attribute.type !== 'JSXAttribute') {\n continue\n }\n\n if (attribute.name.name === 'className') {\n attribute.name.name = 'class'\n }\n }\n },\n },\n }\n}\n"],"names":["AmpAttributePatcher","visitor","JSXOpeningElement","path","openingElement","node","name","attributes","type","startsWith","attribute"],"mappings":"AAEA,eAAe,SAASA;IACtB,OAAO;QACLC,SAAS;YACPC,mBAAkBC,IAAuC;gBACvD,MAAMC,iBAAiBD,KAAKE,IAAI;gBAEhC,MAAM,EAAEC,IAAI,EAAEC,UAAU,EAAE,GAAGH;gBAC7B,IAAI,CAAEE,CAAAA,QAAQA,KAAKE,IAAI,KAAK,eAAc,GAAI;oBAC5C;gBACF;gBAEA,IAAI,CAACF,KAAKA,IAAI,CAACG,UAAU,CAAC,SAAS;oBACjC;gBACF;gBAEA,KAAK,MAAMC,aAAaH,WAAY;oBAClC,IAAIG,UAAUF,IAAI,KAAK,gBAAgB;wBACrC;oBACF;oBAEA,IAAIE,UAAUJ,IAAI,CAACA,IAAI,KAAK,aAAa;wBACvCI,UAAUJ,IAAI,CAACA,IAAI,GAAG;oBACxB;gBACF;YACF;QACF;IACF;AACF","ignoreList":[0]}