Skip to content

Melange: moving modules inside a library with include_subdirs leads to broken paths #9190

@jchavarri

Description

@jchavarri

Expected Behavior

Inside a library using include_subdirs unqualified, a module X can be moved from one folder to another, with Dune re-running melc on the dependents of X so that their paths to JS imports can be updated.

Actual Behavior

Moving the module X leaves the dependents untouched, so any bundler like Webpack or Esbuild will fail because the import path to X these dependents are using still points to the old folder path.

Reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    melangeMelange rules and generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions