@@ -312,11 +312,11 @@ only if the implementation touches standalone-specific behavior. The public
312312standalone config uses the same ` QraftTreeShakeOptions ` type, so core transform
313313tests are the primary contract.
314314
315- ## React Client Fixture Config
315+ ## Example Generated Layout Config
316316
317- After the transform supports the new fields,
318- ` packages/react-client/qraft-tree-shake.config.ts ` should configure the
319- embedded files API entrypoint with :
317+ For a generated API root where service files are emitted without the default
318+ ` Service ` postfix and public ESM imports require ` .js ` , configure the
319+ entrypoint explicitly :
320320
321321``` ts
322322services : {
@@ -325,15 +325,15 @@ services: {
325325},
326326reactContext : {
327327 exportName : " InternalReactAPIClientContext" ,
328- moduleSpecifier : ` ${ filesApiModule }/ index` ,
328+ moduleSpecifier : " ./generated-api/ index" ,
329329 importExtension : " .js" ,
330330}
331331```
332332
333333This mirrors the generated fixture shape where files live at
334- ` services/Files.ts ` and public ESM imports point at ` services/Files.js ` .
335- The context module also needs an emitted ` .js ` specifier when configured through
336- a path-like generated-client module.
334+ ` services/Files.ts ` and public ESM imports point at ` services/Files.js ` . The
335+ context module also needs an emitted ` .js ` specifier when configured through a
336+ path-like generated-client module.
337337
338338## Success Criteria
339339
0 commit comments