import "../_dnt.polyfills.js"; import { createFromBuffer } from "../deps/dprint.js" import dprintConfig from "../dprint.js" import { tsFormatterWasmCompressed } from "./_artifacts/tsFormatterWasmCompressed.js" import { decompress } from "./compression.js" export const tsFormatterPromise = (async () => { const tsFormatterWasm = await decompress(tsFormatterWasmCompressed) const tsFormatter = createFromBuffer(tsFormatterWasm) const { indentWidth, lineWidth, typescript: config } = dprintConfig tsFormatter.setConfig({ indentWidth, lineWidth }, config) return tsFormatter })()