diff --git a/scripts/stage-bundled-plugin-runtime.mjs b/scripts/stage-bundled-plugin-runtime.mjs index 07fd9e958f0..cbd28bc3b24 100644 --- a/scripts/stage-bundled-plugin-runtime.mjs +++ b/scripts/stage-bundled-plugin-runtime.mjs @@ -102,10 +102,6 @@ function linkPluginNodeModules(params) { if (params.distPluginDir) { removePathIfExists(path.join(params.distPluginDir, "node_modules")); } - if (!fs.existsSync(params.sourcePluginNodeModulesDir)) { - return; - } - fs.symlinkSync(params.sourcePluginNodeModulesDir, runtimeNodeModulesDir, symlinkType()); if (params.distPluginDir) { const distNodeModulesDir = path.join(params.distPluginDir, "node_modules");