Skip to content

Commit

Permalink
fix: fixed depracation warning on unplugin, fixed injection of html c…
Browse files Browse the repository at this point in the history
…ode for astro
  • Loading branch information
prisis committed Aug 22, 2024
1 parent 7acab86 commit 54eab40
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 106 deletions.
1 change: 1 addition & 0 deletions examples/astro/.astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
6 changes: 5 additions & 1 deletion examples/astro/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import faviconsPlugin from "@anolilab/unplugin-favicons/vite";
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [faviconsPlugin({})],
plugins: [
faviconsPlugin({
inject: true,
}),
],
},
});
1 change: 1 addition & 0 deletions examples/astro/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"@types/parse-author": "^2.0.3",
"@types/parse5": "^7.0.0",
"@types/ssri": "^7.1.5",
"@visulima/packem": "^1.0.0-alpha.55",
"@visulima/packem": "^1.0.0-alpha.81",
"@vitest/coverage-v8": "^2.0.5",
"audit-ci": "^7.1.0",
"caniuse-lite": "^1.0.30001651",
Expand Down Expand Up @@ -230,16 +230,16 @@
"braces@<3.0.3": ">=3.0.3",
"chrono-node@<2.2.4": ">=2.2.4",
"cosmiconfig-typescript-loader": "^5.0.0",
"follow-redirects@<=1.15.5": ">=1.15.6",
"follow-redirects@<1.15.4": ">=1.15.6",
"follow-redirects@<=1.15.5": ">=1.15.6",
"got@<11.8.5": ">=14.4.2",
"load-tsconfig": "^0.2.5",
"tar@<6.2.1": ">=7.4.3",
"trim@<0.0.3": ">=1.0.1",
"tsconfig-paths": "^4.2.0",
"webpack-dev-middleware@<=5.3.3": ">=7.4.2",
"ws@>=7.0.0 <7.5.10": ">=7.5.10",
"ws@>=8.0.0 <8.17.1": ">=8.17.1",
"ws@>=7.0.0 <7.5.10": ">=7.5.10",
"zod@<=3.22.2": ">=3.23.8"
}
},
Expand Down
Loading

0 comments on commit 54eab40

Please sign in to comment.