diff --git a/package-lock.json b/package-lock.json index 7a06a85..1334cbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,8 +19,7 @@ "d3-shape": "^3.1.0", "d3-zoom": "^3.0.0", "events": "^3.3.0", - "interval-arithmetic-eval": "^0.5.1", - "web-worker": "^1.2.0" + "interval-arithmetic-eval": "^0.5.1" }, "devDependencies": { "@babel/core": "^7.19.1", @@ -17682,11 +17681,6 @@ "defaults": "^1.0.3" } }, - "node_modules/web-worker": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", - "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==" - }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index 4d5dc53..ab94a0f 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,7 @@ "d3-shape": "^3.1.0", "d3-zoom": "^3.0.0", "events": "^3.3.0", - "interval-arithmetic-eval": "^0.5.1", - "web-worker": "^1.2.0" + "interval-arithmetic-eval": "^0.5.1" }, "devDependencies": { "@babel/core": "^7.19.1", diff --git a/src/samplers/interval_worker_pool.ts b/src/samplers/interval_worker_pool.ts index 2b1dab9..7dfa025 100644 --- a/src/samplers/interval_worker_pool.ts +++ b/src/samplers/interval_worker_pool.ts @@ -1,4 +1,5 @@ -import Worker from 'web-worker' +// import Worker from 'web-worker' +// web-worker causes cjs-esm compatibility problems import { FunctionPlotDatum } from '../types.js'