mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't pass watchSet when instantiating Resolver objects.
We used the watchSet only when reading package.json files, and I think we can add package.json files to the watchSet in the ImportScanner instead.
This commit is contained in:
@@ -878,7 +878,6 @@ export class PackageSourceBatch {
|
||||
targetArch: this.processor.arch,
|
||||
extensions: this.importExtensions,
|
||||
nodeModulesPaths,
|
||||
watchSet: this.unibuild.watchSet,
|
||||
onMissing(id) {
|
||||
const error = new Error("Cannot find module '" + id + "'");
|
||||
error.code = "MODULE_NOT_FOUND";
|
||||
|
||||
@@ -125,7 +125,6 @@ export default class ImportScanner {
|
||||
targetArch: bundleArch,
|
||||
extensions,
|
||||
nodeModulesPaths,
|
||||
watchSet,
|
||||
|
||||
onPackageJson(path, pkg) {
|
||||
return scanner._addPkgJsonToOutput(path, pkg);
|
||||
|
||||
@@ -48,7 +48,6 @@ export default class Resolver {
|
||||
targetArch,
|
||||
extensions = [".js", ".json"],
|
||||
nodeModulesPaths = [],
|
||||
watchSet = null,
|
||||
onPackageJson,
|
||||
onMissing,
|
||||
statOrNull = optimisticStatOrNull,
|
||||
@@ -57,7 +56,6 @@ export default class Resolver {
|
||||
this.extensions = extensions;
|
||||
this.targetArch = targetArch;
|
||||
this.nodeModulesPaths = nodeModulesPaths;
|
||||
this.watchSet = watchSet;
|
||||
this.onPackageJson = onPackageJson;
|
||||
this.onMissing = onMissing;
|
||||
this.statOrNull = statOrNull;
|
||||
|
||||
Reference in New Issue
Block a user