Multi-file project playground

Five editable files from one project. Explore relative imports, file-root namespaces, qualified calls, and public and private file exports.

The public compiler must advertise the project-file-map ABI before Build or Run is enabled. Check support explicitly; no source is compiled or saved on page load. Direct relative function imports are the default. A separate transitive profile is available only when the verified compiler advertises its optional ABI. Package linking is not supported.

Entry point · four explicit imports

Namespace · public function and private helper

Separate file · public export

Same export name · distinct import binding

Qualified call · no implicit imports

Project compilation

All four imported files are resolved by the compiler from the in-memory project; namespace aliases keep identical export names distinct.

Expected return for the original example: 42 (not a compiler result).

The direct example is loaded initially. Loading the transitive example replaces all five editors; export your edits first.

Export stays local to this browser.

Compiler support not checked.


        

Edits are temporary unless exported. Reload to restore the example. For actual single-file compilation, open a custom panel.