MCPcopy
hub / github.com/lingodotdev/lingo.dev / parseJSX

Function parseJSX

packages/compiler/src/utils/jsx-expressions.test.ts:8–13  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

6import * as t from "@babel/types";
7
8function parseJSX(code: string) {
9 return parse(code, {
10 plugins: ["jsx"],
11 sourceType: "module",
12 });
13}
14
15describe("getJsxExpressions", () => {
16 it("extracts simple expressions", () => {

Callers 1

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected