nuxt4, and some changes on packages

This commit is contained in:
2025-08-19 21:38:30 +03:30
parent 61fee6c3da
commit 5b6f1a1cdf
900 changed files with 11139 additions and 15161 deletions
+14 -8
View File
@@ -1,11 +1,21 @@
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.DeCxexjU.mjs';
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.Djo8ep_Y.mjs';
import { d as defineHeadPlugin } from './shared/unhead.CApf5sj3.mjs';
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.CApf5sj3.mjs';
import './shared/unhead.DZbvapt-.mjs';
import './shared/unhead.C13swrCa.mjs';
import './shared/unhead.BYvz9V1x.mjs';
import './shared/unhead.DQc16pHI.mjs';
import './shared/unhead.yem5I2v_.mjs';
const META_TRANSFORMABLE_URL = [
"og:url",
"og:image",
"og:image:secure_url",
"twitter:image",
"twitter:image:src",
"og:video",
"og:video:secure_url",
"og:see_also"
];
function CanonicalPlugin(options) {
return (head) => {
let host = options.canonicalHost || (!head.ssr ? window.location.origin : "");
@@ -30,12 +40,8 @@ function CanonicalPlugin(options) {
hooks: {
"tags:resolve": (ctx) => {
for (const tag of ctx.tags) {
if (tag.tag === "meta") {
if (tag.props.property?.startsWith("og:image") || tag.props.name?.startsWith("twitter:image")) {
tag.props.content = resolvePath(tag.props.content);
} else if (tag.props?.property === "og:url") {
tag.props.content = resolvePath(tag.props.content);
}
if (tag.tag === "meta" && (META_TRANSFORMABLE_URL.includes(tag.props?.property) || META_TRANSFORMABLE_URL.includes(tag.props?.name))) {
tag.props.content = resolvePath(tag.props.content);
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
tag.props.href = resolvePath(tag.props.href);
}