vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
321 stars 75 forks source link

Relax Prettier dependency to ^1 #31

Closed koresar closed 6 years ago

koresar commented 6 years ago

Problem: I have several prettiers installed in my new Vue project.

How to reproduce using Vue Cli 3.

As you can see the @vue/component-compiler-utils dictates the (not latest) prettier version for the entire project.

yyx990803 commented 6 years ago
  1. This is intentional, because prettier has had breaking changes in minor releases in the past.

  2. This does not dictate the prettier version for your entire project. As you can see from the tree, it in the worst case only causes one extra copy of prettier which is used only by this module.