UNPKG

@babel/plugin-syntax-typescript

Version:
22 lines (19 loc) 464 B
import { declare } from '@babel/helper-plugin-utils'; const index = declare((api, opts) => { api.assertVersion("^7.0.0-0 || ^8.0.0"); const { disallowAmbiguousJSXLike, dts } = opts; return { name: "syntax-typescript", manipulateOptions(opts, parserOpts) { parserOpts.plugins.push(["typescript", { disallowAmbiguousJSXLike, dts }]); } }; }); export { index as default }; //# sourceMappingURL=index.js.map