Skip to content

Commit

Permalink
reworked TS
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiblaga89 committed Feb 1, 2024
1 parent 1a08564 commit f19c633
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ export const parsePlugins = (
) => {
logTask('parsePlugins');
if (c.buildConfig && platform) {
let includedPlugins = getConfigProp(c, platform, 'includedPlugins');
const includedPluginsConfig = getConfigProp(c, platform, 'includedPlugins');
// default to all plugins if it's not defined (null allowed for overrides)
if (includedPlugins === undefined) includedPlugins = ['*'];
const includedPlugins = includedPluginsConfig === undefined ? ['*'] : includedPluginsConfig;

const excludedPlugins = getConfigProp(c, platform, 'excludedPlugins') || [];

Expand Down Expand Up @@ -407,7 +407,7 @@ export const parsePlugins = (
if (!plugin) return;

if (
((includedPlugins as string[]).includes('*') || (includedPlugins as string[]).includes(key)) &&
(includedPlugins.includes('*') || includedPlugins.includes(key)) &&
!excludedPlugins.includes(key)
) {
const pluginPlat = plugin[platform] || {};
Expand Down

0 comments on commit f19c633

Please sign in to comment.