Skip to content

Commit 000c42e

Browse files
committed
Correctly resolve ESLint plugin helper worker path
1 parent 3aac5e8 commit 000c42e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoints/eslint-plugin-helper.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
'use strict';
2+
const path = require('path');
3+
const url = require('url');
24
const v8 = require('v8');
35
const {Worker} = require('worker_threads');
46

@@ -18,7 +20,8 @@ const resolveGlobsSync = (projectDir, overrideExtensions, overrideFiles) => {
1820
const syncBuffer = new SharedArrayBuffer(4);
1921
sync = new Int32Array(syncBuffer);
2022

21-
worker = new Worker('./lib/eslint-plugin-helper-worker.js', {
23+
const filename = path.join(__dirname, '../lib/eslint-plugin-helper-worker.js');
24+
worker = new Worker(url.pathToFileURL(filename), {
2225
workerData: {
2326
dataBuffer,
2427
syncBuffer,

0 commit comments

Comments
 (0)