astro-ghostcms/.pnpm-store/v3/files/6f/655a070586795fcdadb93a5fad8...

32 lines
577 B
Plaintext

"use strict";
const { resolve } = require("path");
const { createSyncFn } = require("synckit");
const compilerSync = createSyncFn(
resolve(__dirname, "./astrojs-compiler-worker-service.mjs"),
);
module.exports = {
parse,
transform,
convertToTSX,
compile,
};
function parse(...args) {
return compilerSync("parse", ...args);
}
function transform(...args) {
return compilerSync("transform", ...args);
}
function convertToTSX(...args) {
return compilerSync("convertToTSX", ...args);
}
function compile(...args) {
return compilerSync("compile", ...args);
}