Open yuche opened 4 years ago
Following code should work:
// index.js const xxhash = require('xxhash'); const { Worker } = require('worker_threads'); const worker = new Worker('./worker.js'); // worker.js const xxhash = require('xxhash');
ref: https://github.com/nodejs/nan/pull/792
fix #26
Following code should work:
ref: https://github.com/nodejs/nan/pull/792
fix #26