reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

windows_esm_entry

reqlan rq/cli/cli_package.rq:28

Katz 0.083

Node's ESM loader on Windows requires `file://` URLs for absolute dynamic `import()`.
A native path such as `C:\...\out\main.js` is read as protocol `c:` and crashes every command, including `init`.
`bin/cli.js` converts the compiled entry with `fsPathToEsmSpecifier` ( `pathToFileURL` ).
The MCP stdio entry mcp.js uses the same `pathToFileURL` conversion.

implementation
cli.js, esm-path.ts, mcp.js
status
done
tests
windows-esm-entry.test.ts:does not treat a Windows drive letter as a URL scheme, windows-esm-entry.test.ts:CLI bin loads the compiled entry via an ESM file URL helper, windows-esm-entry.test.ts:MCP bin converts the compiled entry with pathToFileURL

Interactive page: windows_esm_entry