Merge bd57dcb844bea56c9117efa392347dfe23787132 into 5e417b44e1540f528d2ae63e3e20229a902d1db2
This commit is contained in:
commit
c7de66d7a8
@ -1,6 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { shouldBuildBundledCluster } from "./lib/optional-bundled-clusters.mjs";
|
||||
import {
|
||||
removeFileIfExists,
|
||||
removePathIfExists,
|
||||
@ -176,6 +177,11 @@ export function copyBundledPluginMetadata(params = {}) {
|
||||
if (!dirent.isDirectory()) {
|
||||
continue;
|
||||
}
|
||||
// Skip optional bundled clusters that are not included in this build.
|
||||
// This matches the filtering logic in tsdown.config.ts.
|
||||
if (!shouldBuildBundledCluster(dirent.name, process.env)) {
|
||||
continue;
|
||||
}
|
||||
sourcePluginDirs.add(dirent.name);
|
||||
|
||||
const pluginDir = path.join(extensionsRoot, dirent.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user