Skip to content

feat: Reimplement support for true ESM mode #48

@Chooks22

Description

@Chooks22

For the sake of the project's simplicity during the v2 rewrite, support for ES Modules have been temporarily dropped.

Major issues in supporting ESM is the lack of access to module cache (as opposed to CJS require.cache), so custom URL hashing, dependency chain tracking, and cache invalidation will all have to be developed (which is possible as seen in v1, but is extremely messy and still have disparities between the two modes).

In future versions, module loading could possibly be handled via messages in a client-server architecture, possibly unifying the handling for both CJS and ES modules and resulting in a clearer API.

Relevant links:

Metadata

Metadata

Assignees

Labels

dev serverIssues concerning the Development ServerenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions