Sha256: 83169801f3bc18bef3f32de70b7a09615ee6368b3dbf8bfd2587d8389c52e132

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

{"version":3,"names":["assertFieldTransformed","path","node","declare","buildCodeFrameError"],"sources":["../src/typescript.ts"],"sourcesContent":["import type { NodePath, types as t } from \"@babel/core\";\n\nexport function assertFieldTransformed(\n  path: NodePath<t.ClassProperty | t.ClassDeclaration>,\n) {\n  if (\n    path.node.declare ||\n    (process.env.BABEL_8_BREAKING\n      ? path.isClassProperty({ definite: true })\n      : false)\n  ) {\n    throw path.buildCodeFrameError(\n      `TypeScript 'declare' fields must first be transformed by ` +\n        `@babel/plugin-transform-typescript.\\n` +\n        `If you have already enabled that plugin (or '@babel/preset-typescript'), make sure ` +\n        `that it runs before any plugin related to additional class features:\\n` +\n        ` - @babel/plugin-transform-class-properties\\n` +\n        ` - @babel/plugin-transform-private-methods\\n` +\n        ` - @babel/plugin-proposal-decorators`,\n    );\n  }\n}\n"],"mappings":";;;;;;AAEO,SAASA,sBAAsBA,CACpCC,IAAoD,EACpD;EACA,IACEA,IAAI,CAACC,IAAI,CAACC,OAAO,IAGb,KAAM,EACV;IACA,MAAMF,IAAI,CAACG,mBAAmB,CAC3B,2DAA0D,GACxD,uCAAsC,GACtC,qFAAoF,GACpF,wEAAuE,GACvE,+CAA8C,GAC9C,8CAA6C,GAC7C,sCACL,CAAC;EACH;AACF","ignoreList":[]}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.50 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.49 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.48 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.47 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.46 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.45 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.44 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.43 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.42 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.41 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map
immosquare-cleaner-0.1.40 node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map