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

Function compileMessagesWithNative

packages/cli-lib/native.ts:132–143  ·  view source on GitHub ↗
(
  messages: NativeCompileMessage[],
  opts: NativeCompileOptions = {}
)

Source from the content-addressed store, hash-verified

130}
131
132export function compileMessagesWithNative(
133 messages: NativeCompileMessage[],
134 opts: NativeCompileOptions = {}
135): string {
136 const native = loadNative()
137 return native.compileMessages(messages, {
138 ast: opts.ast,
139 ignoreTag: opts.ignoreTag,
140 pseudoLocale: opts.pseudoLocale,
141 skipErrors: opts.skipErrors,
142 })
143}
144
145export function extractWithNative(
146 inputFiles: readonly string[],

Callers 1

Calls 2

loadNativeFunction · 0.85
compileMessagesMethod · 0.80

Tested by

no test coverage detected