Skip to content

Commit

Permalink
Fix worker.js file path
Browse files Browse the repository at this point in the history
  • Loading branch information
noppa committed Jul 24, 2020
1 parent 44933a5 commit 32cf62a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { Worker } = require('worker_threads');
const workerFile = require.resolve('./worker.js');

function validateXML(options) {
return new Promise(function validateXMLPromiseCb(resolve, reject) {
const worker = new Worker('./worker.js', {
const worker = new Worker(workerFile, {
workerData: options,
});

Expand Down

0 comments on commit 32cf62a

Please sign in to comment.