// import { parentPort } from 'node:worker_threads'; // import type { TransformOptions } from '@moneko/eslint/babel-core'; // import { type PluginOptions, runBabelPluginReactCompiler } from '@moneko/eslint/react-compiler'; // interface ReactCompilerWorkerOption { // sourceCode: string; // filename: string; // options: Partial | null; // inputSourceMap?: TransformOptions['inputSourceMap']; // } // parentPort?.setMaxListeners(0); // parentPort?.on( // 'message', // ({ sourceCode, filename, inputSourceMap, options }: ReactCompilerWorkerOption) => { // try { // const result = runBabelPluginReactCompiler(sourceCode, filename, 'typescript', options); // parentPort?.postMessage([filename, null, result?.code ?? sourceCode, result.map]); // } catch (err) { // parentPort?.postMessage([filename, err, sourceCode, inputSourceMap]); // } // }, // ); export { };