DataDog/build-plugins

Output always consider the path as relative

AlaricCalmette opened this issue · 1 comments

Describe what happened

When providing a path to absolute, it will always be considered as relative, so there is no way to output the stats file outside the folder you are running your build from.

Steps to reproduce the issue:

Set output as /Users/<username>/build_stats
Run the build

Expected behaviour:

It should create a folder build_stats in my home directory or reuse the existing and output all the files in it.

Actual behaviour:

It output the files to /path/to/my/project/Users/<username>/build_stats

Additional context

  • OS version MacOS 10.15.4
  • Node version 13.10.1
  • Webpack version 4.41.5

I understand that this is probably a wanted behaviour but it should be up to the user to choose wether to keep the files under their project directory or not.