@storm-stack/core
Version:
A build toolkit and runtime used by Storm Software in TypeScript applications
28 lines (26 loc) • 805 B
JavaScript
import { createTransformer, createDeclarationTransformer } from './chunk-5J4CUQCQ.js';
import { __name } from './chunk-43IZMM3W.js';
import ts from 'typescript';
function transpile(context, id, code, options = {}) {
const transformer = createTransformer(context, options);
const declarationTransformer = createDeclarationTransformer(context, options);
return ts.transpileModule(code, {
compilerOptions: {
...context.tsconfig.options,
configFilePath: context.tsconfig.tsconfigFilePath
},
fileName: id,
transformers: {
before: [
transformer
],
after: [
declarationTransformer
]
}
});
}
__name(transpile, "transpile");
export { transpile };
//# sourceMappingURL=chunk-6MI3B55M.js.map
//# sourceMappingURL=chunk-6MI3B55M.js.map