1 |
- {"version":3,"names":["declare","api","options","runtime","undefined","Error","createRegExpFeaturePlugin","name","feature"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n runtime?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n const { runtime } = options;\n if (runtime !== undefined && typeof runtime !== \"boolean\") {\n throw new Error(\"The 'runtime' option must be boolean\");\n }\n\n return createRegExpFeaturePlugin({\n name: \"transform-named-capturing-groups-regex\",\n feature: \"namedCaptureGroups\",\n options: { runtime },\n });\n});\n"],"mappings":";;;;;;;AACA;;AACA;;eAMe,IAAAA,0BAAA,EAAQ,CAACC,GAAD,EAAMC,OAAN,KAA2B;EAChD,MAAM;IAAEC;EAAF,IAAcD,OAApB;;EACA,IAAIC,OAAO,KAAKC,SAAZ,IAAyB,OAAOD,OAAP,KAAmB,SAAhD,EAA2D;IACzD,MAAM,IAAIE,KAAJ,CAAU,sCAAV,CAAN;EACD;;EAED,OAAO,IAAAC,2DAAA,EAA0B;IAC/BC,IAAI,EAAE,wCADyB;IAE/BC,OAAO,EAAE,oBAFsB;IAG/BN,OAAO,EAAE;MAAEC;IAAF;EAHsB,CAA1B,CAAP;AAKD,CAXc,C"}
|