Skip to content

Make AOT packages loadable as ES modules #239

Closed
@jasongin

Description

@jasongin

Currently an AOT module produced by node-api-dotnet must be loaded via CommonJS require(). And there is an example project that shows how to wrap an AOT module in an npm package, where that package also must be loaded via require().

Can we make the AOT module package loadable via ES import instead? Or a package that supports both? (This might require a small bootstrapper script.)

See also the comment from @ceztko that brought up this issue.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions