@hey-api/shared 0.0.0-next-20260612235512 → 0.0.0-next-20260613090318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -8874,8 +8874,8 @@ function resolvePluginsConfig({ defaultPluginConfigs, dependencies, userPlugins,
|
|
|
8874
8874
|
function resolvePlugins({ defaultPluginConfigs, defaultPlugins, dependencies, userConfig }) {
|
|
8875
8875
|
const userPluginsConfig = {};
|
|
8876
8876
|
const rawPresetPlugins = (userConfig.presets ?? []).flatMap((preset) => preset.plugins ?? []);
|
|
8877
|
-
const rawUserPlugins =
|
|
8878
|
-
const rawPlugins = [...rawPresetPlugins, ...rawUserPlugins.length ? rawUserPlugins : defaultPlugins];
|
|
8877
|
+
const rawUserPlugins = userConfig.plugins ?? [];
|
|
8878
|
+
const rawPlugins = [...rawPresetPlugins, ...rawUserPlugins.length ? rawUserPlugins : defaultPlugins].filter((plugin) => typeof plugin === "string" && plugin || typeof plugin !== "string" && plugin.name);
|
|
8879
8879
|
const mergedPlugins = [];
|
|
8880
8880
|
const seenNames = /* @__PURE__ */ new Map();
|
|
8881
8881
|
for (const plugin of rawPlugins) {
|