Skip to content

Commit

Permalink
Fix up after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 7, 2023
1 parent aad0723 commit 36f7830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WorkspaceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type WorkspaceManagerOptions = {

type ReferencedDependencies = Set<[string, string]>;

const nullConfig = { config: null, entry: null, project: null };
const nullConfig: EnsuredPluginConfiguration = { config: null, entry: null, project: null };

/**
* - Determines enabled plugins
Expand Down Expand Up @@ -150,7 +150,7 @@ export class WorkspaceWorker {
}

private getConfigForPlugin(pluginName: PluginName): PluginConfiguration {
return this.config[pluginName] ?? nullConfig;
return this.config[pluginName] !== true ? this.config[pluginName] ?? nullConfig : nullConfig;
}

getEntryFilePatterns() {
Expand Down Expand Up @@ -277,7 +277,7 @@ export class WorkspaceWorker {
const dependencies = await plugin.findDependencies(configFilePath, {
cwd,
manifest: this.manifest,
config: pluginConfig,
config: pluginConfig === true ? nullConfig : pluginConfig,
isProduction: this.isProduction,
});

Expand Down

0 comments on commit 36f7830

Please sign in to comment.