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

Function compileWithNative

packages/cli-lib/native.ts:117–130  ·  view source on GitHub ↗
(
  inputFiles: string[],
  opts: NativeCompileOptions = {}
)

Source from the content-addressed store, hash-verified

115}
116
117export function compileWithNative(
118 inputFiles: string[],
119 opts: NativeCompileOptions = {}
120): string {
121 const native = loadNative()
122 return native.compile(inputFiles, {
123 ast: opts.ast,
124 format: opts.format,
125 followLinks: opts.followLinks,
126 ignoreTag: opts.ignoreTag,
127 pseudoLocale: opts.pseudoLocale,
128 skipErrors: opts.skipErrors,
129 })
130}
131
132export function compileMessagesWithNative(
133 messages: NativeCompileMessage[],

Callers 1

compileFunction · 0.85

Calls 2

loadNativeFunction · 0.85
compileMethod · 0.65

Tested by

no test coverage detected