iamolegga / prettier-loader

prettier loader for webpack
MIT License
30 stars 8 forks source link

Issue with prettier-loader and *.vue files #254

Open MahdiZerara opened 2 years ago

MahdiZerara commented 2 years ago

If you know how to fix the issue, make a pull request instead.

Select one of these and delete the others:

If asking a question:


_If reporting a bug:_
Good morning and thank you for this wonderful tool! I just want to bring to your attention that this loader doesn't work properly on *.vue files. It actually doesn't recognize the syntax and confuse it with *.js files. Could you please provide a fix for that! 

- [ ] Steps to repeat:
If you try to add this loader to Storybook Webpack configuration, it will alter the vue files and generate a syntax error  
- [ ] Code (if necessary) below:
```js
MahdiZerara commented 2 years ago

Feel free to reach out if the bug is unclear!