@storm-stack/core
Version:
A build toolkit and runtime used by Storm Software in TypeScript applications
29 lines (26 loc) • 1.4 kB
JavaScript
;
var chunk3ONWID2V_cjs = require('./chunk-3ONWID2V.cjs');
var cache = new (void 0)();
function createTransformer(context, options = {}) {
return /* @__PURE__ */ chunk3ONWID2V_cjs.__name(function transformer(ctx) {
cache.tick();
return new (void 0)(ctx, cache).withReflection({
reflection: options.reflectionMode || "default",
reflectionLevel: options.reflectionLevel || context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel || "minimal"
});
}, "transformer");
}
chunk3ONWID2V_cjs.__name(createTransformer, "createTransformer");
function createDeclarationTransformer(context, options = {}) {
return /* @__PURE__ */ chunk3ONWID2V_cjs.__name(function declarationTransformer(ctx) {
return new (void 0)(ctx, cache).withReflection({
reflection: options.reflectionMode || "default",
reflectionLevel: options.reflectionLevel || context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel || "minimal"
});
}, "declarationTransformer");
}
chunk3ONWID2V_cjs.__name(createDeclarationTransformer, "createDeclarationTransformer");
exports.createDeclarationTransformer = createDeclarationTransformer;
exports.createTransformer = createTransformer;
//# sourceMappingURL=chunk-FER6BFVC.cjs.map
//# sourceMappingURL=chunk-FER6BFVC.cjs.map