summaryrefslogtreecommitdiff
path: root/packages/webapi/run/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/run/build.js')
-rw-r--r--packages/webapi/run/build.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/packages/webapi/run/build.js b/packages/webapi/run/build.js
index 66c17dc18..993bdcf2c 100644
--- a/packages/webapi/run/build.js
+++ b/packages/webapi/run/build.js
@@ -20,22 +20,8 @@ const readFile = (/** @type {string} */ id) =>
readFileCache[id] || (readFileCache[id] = nodeReadFile(id, 'utf8'))
const pathToDOMException = path.resolve('src', 'lib', 'DOMException.js')
-const pathToEventTargetShim = path.join(
- '..',
- '..',
- 'node_modules',
- 'event-target-shim',
- 'index.mjs'
-)
-const pathToStructuredClone = path.join(
- '..',
- '..',
- 'node_modules',
- '@ungap',
- 'structured-clone',
- 'esm',
- 'index.js'
-)
+const pathToEventTargetShim = path.resolve('node_modules', 'event-target-shim', 'index.mjs')
+const pathToStructuredClone = path.resolve('node_modules', '@ungap', 'structured-clone', 'esm', 'index.js')
const plugins = [
typescript({