Skip to content

Support importing ES modules into .NET #235

@jasongin

Description

@jasongin

Currently the NodejsEnvironment.Import() method supports importing CommonJS modules. But attempting to import an ES module results in an error:

Unexpected token 'export'

Node.js supports ES modules. We need to figure out how to import them in the libnode embedding scenario.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions