Documentation
ESM projects
Install the tool
dotnet tool install --global Universal.EcmaScriptModule.ToolConfigure the source
Add this to Esm.Config beside your project or in a parent directory.
<configuration>
<packageSources>
<add key="redmarbleai" value="https://esm.redmarble.ai/v1/index.json" />
</packageSources>
</configuration>Restore packages
Copy a PackageReference from the package page into your .esmproj.
esm restore Application.esmproj --use-lock-file
esm import-map Application.esmproj --output wwwroot/importmap.json --locked-modeCommit esm.lock.json. Embed the import map before your module scripts.