diff --git a/tools/isobuild/bundler.js b/tools/isobuild/bundler.js index b24a26376b..28067edd9b 100644 --- a/tools/isobuild/bundler.js +++ b/tools/isobuild/bundler.js @@ -1615,7 +1615,8 @@ class JsImage { // We need to find the actual file system location for the node modules // this JS Image uses, so that we can add it to nodeModulesDirectories var modulesPhysicalLocation; - if (! options.includeNodeModules || + if (nmd.local || + ! options.includeNodeModules || options.includeNodeModules === 'symlink') { modulesPhysicalLocation = nmd.getPreferredBundlePath("bundle"); } else if (options.includeNodeModules === 'reference-directly') {