mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-30 17:19:35 +08:00
The module table already resolves a `<specifier>/client` it does not hold exactly to the `<specifier>` entry (stripClientSuffix). The dynamic build preset now applies the same rule: coversRequest() treats `<specifier>/client` as requested whenever `<specifier>` is a baseline, preloaded, or dsh.client.external request, so a bundle that imports either spelling emits a module-table require and never inlines a private copy. The static manifest factory records `<platform module>/client` imports the same way, and verify-client-packages reuses stripClientSuffix: a declared `<baseline>/client` is a repeated baseline request, and a declared `<specifier>` is live when production source imports `<specifier>/client`. Tests: the module table returns one exports object for require(id) and require(id + '/client') of a row named by package (it fails without the normalization); a Web browser test loads a hand-written prebuilt fixture plugin that requires the package root and `/client` of ui-slots, ui-primitives and ui-dockkit and receives the same exports with the expected members; a dynamic bundle importing both spellings of those three packages emits requires of both and inlines none of their modules (it fails with a purity error without the normalization).
10 lines
236 B
JSON
10 lines
236 B
JSON
{
|
|
"name": "@fixture/package-specifiers",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "index.js",
|
|
"exports": { ".": "./index.js", "./client": "./client.js" },
|
|
"dsh": { "client": { "platform": "web" } }
|
|
}
|