/opt/canhelp/node_modules/next/dist/build/babel/plugins
NameSizeModeActions
amp-attributes.d.ts1220644editdlrm
amp-attributes.js10430644editdlrm
amp-attributes.js.map15330644editdlrm
commonjs.d.ts1350644editdlrm
commonjs.js14200644editdlrm
commonjs.js.map18600644editdlrm
jsx-pragma.d.ts2300644editdlrm
jsx-pragma.js37030644editdlrm
jsx-pragma.js.map64230644editdlrm
next-font-unsupported.d.ts1420644editdlrm
next-font-unsupported.js14420644editdlrm
next-font-unsupported.js.map17930644editdlrm
next-page-config.d.ts2340644editdlrm
next-page-config.js90390644editdlrm
next-page-config.js.map124580644editdlrm
next-page-disallow-re-export-all-exports.d.ts1420644editdlrm
next-page-disallow-re-export-all-exports.js11830644editdlrm
next-page-disallow-re-export-all-exports.js.map14930644editdlrm
next-ssg-transform.d.ts6340644editdlrm
next-ssg-transform.js167450644editdlrm
next-ssg-transform.js.map248630644editdlrm
optimize-hook-destructuring.d.ts2300644editdlrm
optimize-hook-destructuring.js24860644editdlrm
optimize-hook-destructuring.js.map46290644editdlrm
react-loadable-plugin.d.ts13270644editdlrm
react-loadable-plugin.js79640644editdlrm
react-loadable-plugin.js.map126500644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/babel/plugins/commonjs.js.map (1860B)
{"version":3,"sources":["../../../../src/build/babel/plugins/commonjs.ts"],"sourcesContent":["import type { NodePath, types } from 'next/dist/compiled/babel/core'\nimport type { PluginObj } from 'next/dist/compiled/babel/core'\nimport commonjsPlugin from 'next/dist/compiled/babel/plugin-transform-modules-commonjs'\n\n// Handle module.exports in user code\nexport default function CommonJSModulePlugin(...args: any): PluginObj {\n const commonjs = commonjsPlugin(...args)\n return {\n visitor: {\n Program: {\n exit(path: NodePath, state) {\n let foundModuleExports = false\n path.traverse({\n MemberExpression(expressionPath: any) {\n if (expressionPath.node.object.name !== 'module') return\n if (expressionPath.node.property.name !== 'exports') return\n foundModuleExports = true\n },\n })\n\n if (!foundModuleExports) {\n return\n }\n\n commonjs.visitor.Program.exit.call(this, path, state)\n },\n },\n },\n }\n}\n"],"names":["CommonJSModulePlugin","args","commonjs","commonjsPlugin","visitor","Program","exit","path","state","foundModuleExports","traverse","MemberExpression","expressionPath","node","object","name","property","call"],"mappings":";;;;+BAIA,qCAAqC;AACrC;;;eAAwBA;;;uFAHG;;;;;;AAGZ,SAASA,qBAAqB,GAAGC,IAAS;IACvD,MAAMC,WAAWC,IAAAA,uCAAc,KAAIF;IACnC,OAAO;QACLG,SAAS;YACPC,SAAS;gBACPC,MAAKC,IAA6B,EAAEC,KAAK;oBACvC,IAAIC,qBAAqB;oBACzBF,KAAKG,QAAQ,CAAC;wBACZC,kBAAiBC,cAAmB;4BAClC,IAAIA,eAAeC,IAAI,CAACC,MAAM,CAACC,IAAI,KAAK,UAAU;4BAClD,IAAIH,eAAeC,IAAI,CAACG,QAAQ,CAACD,IAAI,KAAK,WAAW;4BACrDN,qBAAqB;wBACvB;oBACF;oBAEA,IAAI,CAACA,oBAAoB;wBACvB;oBACF;oBAEAP,SAASE,OAAO,CAACC,OAAO,CAACC,IAAI,CAACW,IAAI,CAAC,IAAI,EAAEV,MAAMC;gBACjD;YACF;QACF;IACF;AACF","ignoreList":[0]}