fix: getModulesByFile should return a serverModule (#18715)
Some checks are pending
CI / Get changed files (push) Waiting to run
CI / Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (18, ubuntu-latest) (push) Blocked by required conditions
CI / Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (20, ubuntu-latest) (push) Blocked by required conditions
CI / Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (22, macos-latest) (push) Blocked by required conditions
CI / Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (22, ubuntu-latest) (push) Blocked by required conditions
CI / Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (22, windows-latest) (push) Blocked by required conditions
CI / Build & Test Passed or Skipped (push) Blocked by required conditions
CI / Build & Test Failed (push) Blocked by required conditions
CI / Lint: node-20, ubuntu-latest (push) Waiting to run
Preview release / preview (push) Waiting to run

This commit is contained in:
翠 / green 2024-11-20 22:22:05 +09:00 committed by GitHub
parent 824c347fa2
commit b80d5ecbbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,7 +308,7 @@ export class ModuleGraph {
if (ssrModules) {
for (const mod of ssrModules) {
if (mod.id == null || !this._client.getModuleById(mod.id)) {
result.add(this.getBackwardCompatibleBrowserModuleNode(mod)!)
result.add(this.getBackwardCompatibleServerModuleNode(mod)!)
}
}
}