Skip to content

Commit

Permalink
chore: add version badge for plugins [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 8, 2021
1 parent f896e4b commit 62925eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
17 changes: 4 additions & 13 deletions packages/plugin-legacy/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @vitejs/plugin-legacy
# @vitejs/plugin-legacy [![npm](https://img.shields.io/npm/v/@vitejs/plugin-legacy.svg)](https://npmjs.com/package/@vitejs/plugin-legacy)

**Note: this plugin requires `vite@^2.0.0-beta.12`**.

Expand All @@ -21,10 +21,7 @@ import legacy from '@vitejs/plugin-legacy'
export default {
plugins: [
legacy({
targets: [
'defaults',
'not IE 11'
]
targets: ['defaults', 'not IE 11']
})
]
}
Expand Down Expand Up @@ -115,14 +112,8 @@ import legacy from '@vitejs/plugin-legacy'
export default {
plugins: [
legacy({
polyfills: [
'es.promise.finally',
'es/map',
'es/set'
],
modernPolyfills: [
'es.promise.finally'
]
polyfills: ['es.promise.finally', 'es/map', 'es/set'],
modernPolyfills: ['es.promise.finally']
})
]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react-refresh/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @vitejs/plugin-react-refresh
# @vitejs/plugin-react-refresh [![npm](https://img.shields.io/npm/v/@vitejs/plugin-react-refresh.svg)](https://npmjs.com/package/@vitejs/plugin-react-refresh)

Provides [React Refresh](https://www.npmjs.com/package/react-refresh) support for Vite.

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-jsx/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @vitejs/plugin-vue-jsx
# @vitejs/plugin-vue-jsx [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue-jsx.svg)](https://npmjs.com/package/@vitejs/plugin-vue-jsx)

Provides Vue 3 JSX & TSX support with HMR.

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @vitejs/plugin-vue
# @vitejs/plugin-vue [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue.svg)](https://npmjs.com/package/@vitejs/plugin-vue)

Note: requires `@vue/compiler-sfc` as peer dependency. This is largely a port of `rollup-plugin-vue` with some vite-specific tweaks.

Expand Down

0 comments on commit 62925eb

Please sign in to comment.