Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 3, 2024
1 parent dba1039 commit a4ea56b
Show file tree
Hide file tree
Showing 55 changed files with 614 additions and 581 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export default defineNuxtConfig({
Or work with [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components) resolvers

```ts
import ViteComponents from 'unplugin-vue-components/vite'
import IconsResolver from 'unplugin-icons/resolver'
import ViteComponents from 'unplugin-vue-components/vite'

// nuxt.config.ts
export default defineNuxtConfig({
Expand Down Expand Up @@ -264,10 +264,10 @@ export default {
The `unplugin-icons` plugin should be configured in the `vite.config.js` configuration file:

```ts
// vite.config.js
import { defineConfig } from 'vite'
import { sveltekit } from '@sveltejs/kit/vite'
import Icons from 'unplugin-icons/vite'
// vite.config.js
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [
Expand Down Expand Up @@ -296,10 +296,10 @@ npm i -D @sveltejs/vite-plugin-svelte
The `unplugin-icons` plugin should be configured in the `vite.config.js` configuration file:

```ts
// vite.config.js
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import Icons from 'unplugin-icons/vite'
// vite.config.js
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [
Expand Down Expand Up @@ -428,9 +428,9 @@ See [the Astro example](examples/astro) for a working example project.
Required [@astrojs/vue](https://docs.astro.build/es/guides/integrations-guide/vue/) installed.

```ts
import Vue from '@astrojs/vue'
// astro.config.mjs
import { defineConfig } from 'astro/config'
import Vue from '@astrojs/vue'
import Icons from 'unplugin-icons/vite'

// https://astro.build/config
Expand Down Expand Up @@ -1046,8 +1046,8 @@ For example in Vite:
```js
// vite.config.js
import Vue from '@vitejs/plugin-vue'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'

export default {
Expand Down Expand Up @@ -1082,10 +1082,10 @@ Use with [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import)
For example in Vite:

```js
import AutoImport from 'unplugin-auto-import/vite'
import IconsResolver from 'unplugin-icons/resolver'
// vite.config.js
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import AutoImport from 'unplugin-auto-import/vite'

export default {
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion examples/astro-vue/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'astro/config'
import Vue from '@astrojs/vue'
import { defineConfig } from 'astro/config'
import Icons from 'unplugin-icons/vite'

// https://astro.build/config
Expand Down
4 changes: 2 additions & 2 deletions examples/astro-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
},
"dependencies": {
"@astrojs/vue": "^4.5.3",
"astro": "^4.16.15"
"astro": "^4.16.16"
},
"devDependencies": {
"@iconify/json": "^2.2.276",
"@iconify/json": "^2.2.279",
"unplugin-icons": "workspace:*"
},
"stackblitz": {
Expand Down
4 changes: 2 additions & 2 deletions examples/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.16.15"
"astro": "^4.16.16"
},
"devDependencies": {
"@iconify/json": "^2.2.276",
"@iconify/json": "^2.2.279",
"unplugin-icons": "workspace:*"
},
"stackblitz": {
Expand Down
2 changes: 1 addition & 1 deletion examples/next/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import '../styles/globals.css'

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
Expand Down
4 changes: 2 additions & 2 deletions examples/next/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Head from 'next/head'
import type { NextPage } from 'next'
import styles from '../styles/Home.module.css'
import Head from 'next/head'
import IconArrowRight from '~icons/dashicons/arrow-right.jsx'
import NextLogo from '~icons/logos/nextjs.jsx'
import VercelLogo from '~icons/logos/vercel.jsx'
import styles from '../styles/Home.module.css'

const Home: NextPage = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt3/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ViteComponents from 'unplugin-vue-components/vite'
import IconsResolver from 'unplugin-icons/resolver'
import ViteComponents from 'unplugin-vue-components/vite'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@iconify-json/mdi": "^1.2.1",
"nuxt": "^3.14.1592",
"unplugin-icons": "link:../..",
"unplugin-vue-components": "^0.27.4"
"unplugin-vue-components": "^0.27.5"
},
"stackblitz": {
"installDependencies": false,
Expand Down
2 changes: 1 addition & 1 deletion examples/rspack-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"vue": "^3.4.21"
},
"devDependencies": {
"@iconify/json": "^2.2.276",
"@iconify/json": "^2.2.279",
"@rspack/cli": "^1.1.4",
"@rspack/core": "^1.1.4",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/rspack-vue3/rspack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from '@rspack/cli'
import { rspack } from '@rspack/core'
import { VueLoaderPlugin } from 'vue-loader'
import Icons from 'unplugin-icons/rspack'
import { VueLoaderPlugin } from 'vue-loader'

const __dirname = dirname(fileURLToPath(import.meta.url))

Expand Down
2 changes: 1 addition & 1 deletion examples/rspack-vue3/src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './style.css'
import { createApp } from 'vue'
import App from './App.vue'
import './style.css'

createApp(App).mount('#app')
4 changes: 2 additions & 2 deletions examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@iconify-json/icon-park": "^1.2.1",
"@iconify-json/logos": "^1.2.3",
"@iconify-json/mdi": "^1.2.1",
"@sveltejs/kit": "^2.8.5",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"svelte": "^5.2.9",
"svelte": "^5.4.0",
"svelte-check": "^4.1.0",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/sveltekit/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import { sveltekit } from '@sveltejs/kit/vite'
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [
Expand Down
8 changes: 4 additions & 4 deletions examples/vite-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"serve": "vite preview"
},
"dependencies": {
"preact": "^10.25.0"
"preact": "^10.25.1"
},
"devDependencies": {
"@iconify-json/logos": "^1.2.3",
"@preact/preset-vite": "^2.9.1",
"@preact/preset-vite": "^2.9.2",
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"typescript": "^5.7.2",
"unplugin-icons": "workspace:*",
"vite": "^6.0.1",
"vite-plugin-inspect": "^0.10.0"
"vite": "^6.0.2",
"vite-plugin-inspect": "^0.10.3"
},
"stackblitz": {
"installDependencies": false,
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-preact/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import Preact from '@preact/preset-vite'
import Inspect from 'vite-plugin-inspect'
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@builder.io/qwik": "1.2.10",
"@svgx/core": "^1.0.1",
"@types/eslint": "8.44.2",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/node-fetch": "latest",
"@typescript-eslint/eslint-plugin": "6.5.0",
"@typescript-eslint/parser": "6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-qwik/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import { qwikVite } from '@builder.io/qwik/optimizer'
import tsconfigPaths from 'vite-tsconfig-paths'
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'

export default defineConfig(() => {
return {
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^5.7.2",
"unplugin-icons": "workspace:*",
"vite": "^6.0.1",
"vite-plugin-inspect": "^0.10.0"
"vite": "^6.0.2",
"vite-plugin-inspect": "^0.10.3"
},
"stackblitz": {
"installDependencies": false,
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react'
import './App.css'
import ReactLogo from '~icons/logos/react'
import RawReactLogo from '~icons/logos/react?raw'
import './App.css'

function _a() {
return <svg />
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import './index.css'

ReactDOM.render(
<React.StrictMode>
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import React from '@vitejs/plugin-react-refresh'
import Inspect from 'vite-plugin-inspect'
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"unplugin-icons": "workspace:*",
"vite": "^6.0.1",
"vite": "^6.0.2",
"vite-plugin-solid": "^2.11.0"
},
"stackblitz": {
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-solid/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Component } from 'solid-js'

import logo from './logo.svg'
import styles from './App.module.css'
import Icon from '~icons/logos/solidjs-icon'
import styles from './App.module.css'
import logo from './logo.svg'

const App: Component = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-solid/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render } from 'solid-js/web'

import './index.css'
import App from './App'
import './index.css'

render(() => <App />, document.getElementById('root'))
2 changes: 1 addition & 1 deletion examples/vite-solid/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'
import solidPlugin from 'vite-plugin-solid'
import Icons from 'unplugin-icons/vite'

export default defineConfig({
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"@tsconfig/svelte": "^5.0.4",
"cross-env": "^7.0.3",
"svelte": "^5.2.9",
"svelte": "^5.4.0",
"svelte-check": "^4.1.0",
"svelte-preprocess": "^6.0.3",
"typescript": "^5.7.2",
"unplugin-icons": "workspace:*",
"vite": "^6.0.1"
"vite": "^6.0.2"
},
"stackblitz": {
"installDependencies": false,
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-svelte/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from 'node:process'
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import Icons from 'unplugin-icons/vite'
import { defineConfig } from 'vite'

const options = process.env.CUSTOM_COMPILER === 'true'
? {
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@iconify-json/mono-icons": "^1.2.0",
"unplugin-icons": "workspace:*",
"vite": "^6.0.1"
"vite": "^6.0.2"
},
"stackblitz": {
"installDependencies": false,
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"@iconify-json/mdi-light": "^1.2.1",
"@iconify-json/noto-v1": "^1.2.0",
"@iconify-json/ri": "^1.2.3",
"@iconify-json/vscode-icons": "^1.2.2",
"@iconify-json/vscode-icons": "^1.2.3",
"@vitejs/plugin-vue2": "^2.3.3",
"typescript": "^5.7.2",
"unplugin-icons": "workspace:*",
"unplugin-vue-components": "^0.27.4",
"vite": "^6.0.1",
"unplugin-vue-components": "^0.27.5",
"vite": "^6.0.2",
"vue-template-compiler": "^2.7.16",
"vue-template-es2015-compiler": "^1.9.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-vue2/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { UserConfig } from 'vite'
import Vue from '@vitejs/plugin-vue2'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'

const config: UserConfig = {
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-vue3-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@iconify/json": "^2.2.276",
"@iconify/json": "^2.2.279",
"@vitejs/plugin-vue": "^5.2.1",
"cross-env": "^7.0.3",
"typescript": "^5.7.2",
"unplugin-icons": "workspace:*",
"unplugin-vue-components": "^0.27.4",
"vite": "^6.0.1"
"unplugin-vue-components": "^0.27.5",
"vite": "^6.0.2"
},
"stackblitz": {
"installDependencies": false,
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-vue3-legacy/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { promises as fs } from 'node:fs'
import type { UserConfig } from 'vite'
import { promises as fs } from 'node:fs'
import Vue from '@vitejs/plugin-vue'
import Icons from 'unplugin-icons/vite'
import { FileSystemIconLoader } from 'unplugin-icons/loaders'
import IconsResolver from 'unplugin-icons/resolver'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'

const config: UserConfig = {
Expand Down
Loading

0 comments on commit a4ea56b

Please sign in to comment.