Skip to content

Consider for migrate to ESM-only package #2098

@hyperz111

Description

@hyperz111

parse5 v8 has migrate to ESM-only package, so i think if we should.
But before migrating, we MUST ONLY support Node.js with the minimum version is 20.
Because on that version, CommonJS can import an ESM file.

Note

Node.js with version under 20 is deprecated.

// This is works
const esm = require("./esm.mjs");

This will reduce half of the package size. Agree @fb55?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions