Skip to content

Vite: Avoid reading node_modules after building #160

@liangmiQwQ

Description

@liangmiQwQ

Related #151 (review)

Since it is an after-build analyze devtools, I think it is also important to make display effect to be the same after building no matter what actions you have done except editing the files in .rolldown dir, there are two ways to implement:

  • Since we only require the package name and its version, I think we can do something at rolldown side to save the metadata in the logs, and read the metadata rather than node_modules. It is an easy but a little breaking way since the data struct is changed
  • Another workaround is try to get the the information required from the file URL, it is a little bit hacky and different package manager can have different path format for parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions