Sha256: 83f68e28ff05f71cc3907febdb24c5b28099ebd81df7adbea50761c0a5ab52be

Contents?: true

Size: 1.74 KB

Versions: 16

Compression:

Stored size: 1.74 KB

Contents

{"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","deprecatedAssertSyntax","assertVersion","Error","name","manipulateOptions","parserOpts","generatorOpts","_generatorOpts$import","importAttributesKeyword","plugins","push","Boolean"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n  deprecatedAssertSyntax?: boolean;\n}\n\nexport default declare((api, { deprecatedAssertSyntax }: Options) => {\n  api.assertVersion(REQUIRED_VERSION(\"^7.22.0\"));\n\n  if (\n    deprecatedAssertSyntax != null &&\n    typeof deprecatedAssertSyntax !== \"boolean\"\n  ) {\n    throw new Error(\n      \"'deprecatedAssertSyntax' must be a boolean, if specified.\",\n    );\n  }\n\n  return {\n    name: \"syntax-import-attributes\",\n\n    manipulateOptions({ parserOpts, generatorOpts }) {\n      generatorOpts.importAttributesKeyword ??= \"with\";\n      parserOpts.plugins.push([\n        \"importAttributes\",\n        { deprecatedAssertSyntax: Boolean(deprecatedAssertSyntax) },\n      ]);\n    },\n  };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMtC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAE;EAAEC;AAAgC,CAAC,KAAK;EACnED,GAAG,CAACE,aAAa,sCAA4B,CAAC;EAE9C,IACED,sBAAsB,IAAI,IAAI,IAC9B,OAAOA,sBAAsB,KAAK,SAAS,EAC3C;IACA,MAAM,IAAIE,KAAK,CACb,2DACF,CAAC;EACH;EAEA,OAAO;IACLC,IAAI,EAAE,0BAA0B;IAEhCC,iBAAiBA,CAAC;MAAEC,UAAU;MAAEC;IAAc,CAAC,EAAE;MAAA,IAAAC,qBAAA;MAC/C,CAAAA,qBAAA,GAAAD,aAAa,CAACE,uBAAuB,YAAAD,qBAAA,GAArCD,aAAa,CAACE,uBAAuB,GAAK,MAAM;MAChDH,UAAU,CAACI,OAAO,CAACC,IAAI,CAAC,CACtB,kBAAkB,EAClB;QAAEV,sBAAsB,EAAEW,OAAO,CAACX,sBAAsB;MAAE,CAAC,CAC5D,CAAC;IACJ;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.59 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.58 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.57 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.56 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.55 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.54 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.53 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.52 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.48 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.47 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.46 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map