From a9d8d402db9d764be501c98e60c7ab3415b28595 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:09:47 +0000 Subject: [PATCH 1/4] Initial plan From b6b27530df8e1648082c4b50836e50df0dabc3fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:13:59 +0000 Subject: [PATCH 2/4] Fix isolated-vm bundling issue by marking it as external This prevents Rollup from trying to bundle the native C++ module isolated-vm, which cannot be bundled into JavaScript. The module will now be loaded at runtime from node_modules instead. Co-authored-by: u12206050 <6641242+u12206050@users.noreply.github.com> --- extension.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension.config.js b/extension.config.js index 1b86b7f..4f8ae9b 100644 --- a/extension.config.js +++ b/extension.config.js @@ -7,4 +7,6 @@ export default { peerDependencies: true, }), ], + // Exclude native modules that cannot be bundled + external: ['isolated-vm'], }; From 89df875ac597a29eb9f5ac3835b42a999230db90 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:14:19 +0000 Subject: [PATCH 3/4] Update CHANGELOG for isolated-vm fix Co-authored-by: u12206050 <6641242+u12206050@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7207fa8..9f006b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Version 3.1.1 - **Fixed** Snapshot undefined issue + - **Fixed** Docker installation crash due to isolated-vm native module bundling ## Version 3.1.0 From f449c7f805c8efaf307a076513a4f4c63670ba3e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 07:00:14 +0000 Subject: [PATCH 4/4] Mark entire @directus/api as external instead of just isolated-vm The issue was that @directus/api is a peer dependency and should be fully external since it's provided by Directus at runtime. Using a regex pattern to match all @directus/api submodules ensures nothing from this package gets bundled. Co-authored-by: u12206050 <6641242+u12206050@users.noreply.github.com> --- extension.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.config.js b/extension.config.js index 4f8ae9b..76f7683 100644 --- a/extension.config.js +++ b/extension.config.js @@ -7,6 +7,6 @@ export default { peerDependencies: true, }), ], - // Exclude native modules that cannot be bundled - external: ['isolated-vm'], + // Exclude @directus/api peer dependency and its submodules + external: [/^@directus\/api/], };