Skip to content

Commit

Permalink
Don't bail out if plugin entry is set
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 12, 2023
1 parent 31ffb42 commit d31a31a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/WorkspaceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ export class WorkspaceWorker {
debugLogArray(`Found ${plugin.NAME} config file paths`, configFilePaths);

// Bail out, no config files found for this plugin
if (patterns.length > 0 && configFilePaths.length === 0) continue;
if (patterns.length > 0 && configFilePaths.length === 0) {
if (typeof pluginConfig !== 'boolean' && pluginConfig.entry !== null && pluginConfig.entry.length > 0) {
// ...but only if no entry files are set
} else {
continue;
}
}

// Plugin has no config files configured, call it once to still get the entry:/production: patterns
if (patterns.length === 0) configFilePaths.push(FAKE_PATH);
Expand Down

0 comments on commit d31a31a

Please sign in to comment.