Skip to content

Eleventy 3.0.0 is using @11ty/dependency-tree  #3593

Closed as not planned
Closed as not planned
@RogierKonings

Description

@RogierKonings

Operating system

Windows 10

Eleventy

3.0.0

Describe the bug

There seem to be packages that still depend on CommonJS packages

Reproduction steps

  1. Install 11ty 3.0.0 version
  2. Convert project to use ESM module resolution
  3. Run an npx @11ty/eleventy --watch
  4. See the following warning

(node:12456) ExperimentalWarning: CommonJS module C:\…\node_modules\@11ty\dependency-tree\main.js is loading ES Module C:\…\site\.eleventy.js using require(). Support for loading ES Module in require() is an experimental feature and might change at any time

Expected behavior

I expect for 11ty 3.0.0 to use the ESM version: dependency-tree-esm

Reproduction URL

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-test-casePlease submit a reproducible test case showcasing the issue!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions