mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Do not calculate rebuild dirs in "meteor run"
It is never used in the bundles created by "meteor run", and adds 0.5 - 1.5 seconds per build for smaller apps.
This commit is contained in:
@@ -2420,7 +2420,9 @@ class JsImage {
|
||||
_.each(nodeModulesDirectories, function (nmd) {
|
||||
assert.strictEqual(typeof nmd.preferredBundlePath, "string");
|
||||
|
||||
if (! nmd.isPortable()) {
|
||||
// Skip calculating isPortable in 'meteor run' since the
|
||||
// modules are never rebuilt
|
||||
if (includeNodeModules !== 'symlink' && !nmd.isPortable()) {
|
||||
const parentDir = files.pathDirname(nmd.preferredBundlePath);
|
||||
rebuildDirs[parentDir] = parentDir;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user