Make Prettier organize your imports using the TypeScript language service API.
Switched to a different package for Vue support, so if you're using this plugin with Vue, you'll have to install @volar/vue-typescript
as a dev dependency now, and you can remove @vue/compiler-sfc
/@vue/component-compiler-utils
/vue-template-compiler
.
Otherwise, no breaking changes.
Fixed a bug where empty comment lines were inserted into Vue 2 files.
@vue/compiler-sfc
(Vue 3.x) first before the@vue/component-compiler-utils
and vue-template-compiler
combo (which -theoretically is for Vue 2.x but probably also works for 3.x).The version published to npm was missing files which has been fixed now.
Warning: Don't use this version from npm as it was missing files when being published. Please use v2.3.1 instead.
DEBUG
env var is set.Thanks @blidblid for helping debug this performance issue.
Adds support for Vue.js (.vue
) files (see #16 and 474bbcb1202535ba374f340a481c1e3f3b8033a6).
Now supports JavaScript via the babel
parser and also supports TypeScript via the babel-ts
parser :tada:
Special thanks to @duniul for the contribution (see #18)!
Both parsers are only available since Prettier v2, therefore the peer dependency has had a major version bump, which led me to release this as a major version as well. There are no breaking changes otherwise, so unless you're still on Prettier v1, you can just upgrade.
(The parser was called babylon
in Prettier v1 but had a different signature so it would not have been easy to do a backwards-compatible implementation)
Added the files
list to package.json
to reduce the size on npm.