Skip to content

Very slow as soon as "coffescript" package is installed #988

@neelance

Description

@neelance

On our codebase (with a simplified config), depcruiser takes 7 seconds to complete. As soon as the "coffeescript" package is installed, it takes 40 seconds instead.

I understand that automatically using the transpiler if it is installed is an intended feature. However, this performance behaviour is surprising and not easy to debug. It took a while for me to pinpoint "coffeescript" as the culprit.

I see a several options to improve this:

  • Print a warning if the CoffeeScript transpiler is used and there are many .js files
  • Print a warning if the CoffeeScript transpiler is used and there are no .coffee files
  • Do not use the CoffeeScript transpiler if there are no .coffee files
  • Make the CoffeeScript transpiler opt-in in the config

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementthis will make dependency-cruiser sweeter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions