This commit is contained in:
Sebastian Miasojed
2024-11-18 10:18:21 +01:00
parent f57ab96eed
commit cece20deb1
11 changed files with 56 additions and 186 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
// worker.js
// nodejs version
const { parentPort } = require('worker_threads');
import { parentPort } from 'worker_threads';
parentPort.on('message', async (inputJson) => {
const { default: ModuleFactory } = await import('./resolc.mjs');
const { default: ModuleFactory } = await import('./resolc.js');
const newModule = await ModuleFactory();
// Create a virtual file for stdin