@babel/plugin-syntax-typescript
Advanced tools
+1
-1
| import { declare } from '@babel/helper-plugin-utils'; | ||
| var index = declare((api, opts) => { | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.2"); | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.3"); | ||
| const { | ||
@@ -6,0 +6,0 @@ disallowAmbiguousJSXLike, |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n disallowAmbiguousJSXLike?: boolean;\n dts?: boolean;\n isTSX?: boolean;\n}\n\nexport default declare((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0\"));\n\n const { disallowAmbiguousJSXLike, dts } = opts;\n\n return {\n name: \"syntax-typescript\",\n\n manipulateOptions(opts, parserOpts) {\n parserOpts.plugins.push([\n \"typescript\",\n { disallowAmbiguousJSXLike, dts },\n ]);\n },\n };\n});\n"],"names":["declare","api","opts","assertVersion","disallowAmbiguousJSXLike","dts","name","manipulateOptions","parserOpts","plugins","push"],"mappings":";;AAQA,YAAeA,OAAO,CAAC,CAACC,GAAG,EAAEC,IAAa,KAAK;EAC7CD,GAAG,CAACE,aAAa,CAAA,kCAAuC,CAAC,CAAA;EAEzD,MAAM;IAAEC,wBAAwB;AAAEC,IAAAA,GAAAA;AAAI,GAAC,GAAGH,IAAI,CAAA;EAE9C,OAAO;AACLI,IAAAA,IAAI,EAAE,mBAAmB;AAEzBC,IAAAA,iBAAiBA,CAACL,IAAI,EAAEM,UAAU,EAAE;AAClCA,MAAAA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,CACtB,YAAY,EACZ;QAAEN,wBAAwB;AAAEC,QAAAA,GAAAA;AAAI,OAAC,CAClC,CAAC,CAAA;AACJ,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"} | ||
| {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n disallowAmbiguousJSXLike?: boolean;\n dts?: boolean;\n isTSX?: boolean;\n}\n\nexport default declare((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0\"));\n\n const { disallowAmbiguousJSXLike, dts } = opts;\n\n return {\n name: \"syntax-typescript\",\n\n manipulateOptions(opts, parserOpts) {\n parserOpts.plugins.push([\n \"typescript\",\n { disallowAmbiguousJSXLike, dts },\n ]);\n },\n };\n});\n"],"names":["declare","api","opts","assertVersion","disallowAmbiguousJSXLike","dts","name","manipulateOptions","parserOpts","plugins","push"],"mappings":";;AAQA,YAAeA,OAAO,CAAC,CAACC,GAAG,EAAEC,IAAa,KAAK;EAC7CD,GAAG,CAACE,aAAa,CAAA,kCAAuC,CAAC;EAEzD,MAAM;IAAEC,wBAAwB;AAAEC,IAAAA;AAAI,GAAC,GAAGH,IAAI;EAE9C,OAAO;AACLI,IAAAA,IAAI,EAAE,mBAAmB;AAEzBC,IAAAA,iBAAiBA,CAACL,IAAI,EAAEM,UAAU,EAAE;AAClCA,MAAAA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,CACtB,YAAY,EACZ;QAAEN,wBAAwB;AAAEC,QAAAA;AAAI,OAAC,CAClC,CAAC;AACJ,IAAA;GACD;AACH,CAAC,CAAC;;;;"} |
+5
-5
| { | ||
| "name": "@babel/plugin-syntax-typescript", | ||
| "version": "8.0.0-rc.2", | ||
| "version": "8.0.0-rc.3", | ||
| "description": "Allow parsing of TypeScript syntax", | ||
@@ -21,10 +21,10 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/helper-plugin-utils": "^8.0.0-rc.2" | ||
| "@babel/helper-plugin-utils": "^8.0.0-rc.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@babel/core": "^8.0.0-rc.2" | ||
| "@babel/core": "^8.0.0-rc.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": "^8.0.0-rc.2", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-rc.2" | ||
| "@babel/core": "^8.0.0-rc.3", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-rc.3" | ||
| }, | ||
@@ -31,0 +31,0 @@ "engines": { |
4512
-0.7%