@atlaspack/workers 2.13.2-canary.3692 → 2.13.2-canary.3694

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,13 @@ function _child_process() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _path() {
15
+ const data = _interopRequireDefault(require("path"));
16
+ _path = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _buildCache() {
15
22
  const data = require("@atlaspack/build-cache");
16
23
  _buildCache = function () {
@@ -19,7 +26,7 @@ function _buildCache() {
19
26
  return data;
20
27
  }
21
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
- const WORKER_PATH = require.resolve('./ProcessChild');
29
+ const WORKER_PATH = _path().default.join(__dirname, './ProcessChild.js');
23
30
  class ProcessWorker {
24
31
  processQueue = true;
25
32
  sendQueue = [];
@@ -11,6 +11,13 @@ function _worker_threads() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _path() {
15
+ const data = _interopRequireDefault(require("path"));
16
+ _path = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _buildCache() {
15
22
  const data = require("@atlaspack/build-cache");
16
23
  _buildCache = function () {
@@ -18,7 +25,8 @@ function _buildCache() {
18
25
  };
19
26
  return data;
20
27
  }
21
- const WORKER_PATH = require.resolve('./ThreadsChild');
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+ const WORKER_PATH = _path().default.join(__dirname, './ThreadsChild.js');
22
30
  class ThreadsWorker {
23
31
  constructor(execArgv, onMessage, onError, onExit) {
24
32
  this.execArgv = execArgv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/workers",
3
- "version": "2.13.2-canary.3692+50265fdf4",
3
+ "version": "2.13.2-canary.3694+1de1c8138",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -24,17 +24,17 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaspack/build-cache": "2.13.2-canary.3692+50265fdf4",
28
- "@atlaspack/diagnostic": "2.13.2-canary.3692+50265fdf4",
29
- "@atlaspack/logger": "2.13.2-canary.3692+50265fdf4",
30
- "@atlaspack/profiler": "2.13.2-canary.3692+50265fdf4",
31
- "@atlaspack/types-internal": "2.13.2-canary.3692+50265fdf4",
32
- "@atlaspack/utils": "2.13.2-canary.3692+50265fdf4",
27
+ "@atlaspack/build-cache": "2.13.2-canary.3694+1de1c8138",
28
+ "@atlaspack/diagnostic": "2.13.2-canary.3694+1de1c8138",
29
+ "@atlaspack/logger": "2.13.2-canary.3694+1de1c8138",
30
+ "@atlaspack/profiler": "2.13.2-canary.3694+1de1c8138",
31
+ "@atlaspack/types-internal": "2.13.2-canary.3694+1de1c8138",
32
+ "@atlaspack/utils": "2.13.2-canary.3694+1de1c8138",
33
33
  "nullthrows": "^1.1.1"
34
34
  },
35
35
  "browser": {
36
36
  "./src/process/ProcessWorker.js": false,
37
37
  "./src/threads/ThreadsWorker.js": false
38
38
  },
39
- "gitHead": "50265fdf4024ec18439e85b472aa77a7952e2e08"
39
+ "gitHead": "1de1c8138fbe4d38a64aa1f3c22a70aad59fb5bb"
40
40
  }
@@ -9,10 +9,11 @@ import type {
9
9
  } from '../types';
10
10
 
11
11
  import childProcess, {type ChildProcess} from 'child_process';
12
+ import path from 'path';
12
13
 
13
14
  import {serialize, deserialize} from '@atlaspack/build-cache';
14
15
 
15
- const WORKER_PATH = require.resolve('./ProcessChild');
16
+ const WORKER_PATH = path.join(__dirname, './ProcessChild.js');
16
17
 
17
18
  export default class ProcessWorker implements WorkerImpl {
18
19
  execArgv: Object;
@@ -9,13 +9,14 @@ import type {
9
9
  } from '../types';
10
10
 
11
11
  import {Worker} from 'worker_threads';
12
+ import path from 'path';
12
13
 
13
14
  import {
14
15
  prepareForSerialization,
15
16
  restoreDeserializedObject,
16
17
  } from '@atlaspack/build-cache';
17
18
 
18
- const WORKER_PATH = require.resolve('./ThreadsChild');
19
+ const WORKER_PATH = path.join(__dirname, './ThreadsChild.js');
19
20
 
20
21
  export default class ThreadsWorker implements WorkerImpl {
21
22
  execArgv: Object;