MCPcopy Index your code
hub / github.com/formatjs/formatjs / t

Function t

packages/unplugin/tests/transform.test.ts:5–12  ·  view source on GitHub ↗
(
  code: string,
  options: Options = {},
  filename = '/path/to/file.tsx'
)

Source from the content-addressed store, hash-verified

3import {interpolateName} from '@formatjs/ts-transformer'
4
5function t(
6 code: string,
7 options: Options = {},
8 filename = '/path/to/file.tsx'
9) {
10 const result = transform(code, filename, options)
11 return result?.code ?? code
12}
13
14describe('@formatjs/unplugin transform', () => {
15 describe('id generation', () => {

Callers 4

transform.test.tsFile · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85

Calls 1

transformFunction · 0.90

Tested by

no test coverage detected