@unhead/addons 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,7 @@ const TreeshakeServerComposables = unplugin.createUnplugin((userConfig = {}) =>
|
|
|
31
31
|
return false;
|
|
32
32
|
},
|
|
33
33
|
async transform(code, id) {
|
|
34
|
-
if (!code.includes("useServerHead") && !code.includes("useSeoMeta"))
|
|
34
|
+
if (!code.includes("useServerHead") && !code.includes("useSeoMeta") && !code.includes("useSchemaOrg"))
|
|
35
35
|
return null;
|
|
36
36
|
let transformed;
|
|
37
37
|
try {
|
|
@@ -40,7 +40,8 @@ const TreeshakeServerComposables = unplugin.createUnplugin((userConfig = {}) =>
|
|
|
40
40
|
transformer: [
|
|
41
41
|
RemoveFunctions([
|
|
42
42
|
"useServerHead",
|
|
43
|
-
"useSeoMeta"
|
|
43
|
+
"useSeoMeta",
|
|
44
|
+
"useSchemaOrg"
|
|
44
45
|
])
|
|
45
46
|
]
|
|
46
47
|
});
|
|
@@ -29,7 +29,7 @@ const TreeshakeServerComposables = createUnplugin((userConfig = {}) => {
|
|
|
29
29
|
return false;
|
|
30
30
|
},
|
|
31
31
|
async transform(code, id) {
|
|
32
|
-
if (!code.includes("useServerHead") && !code.includes("useSeoMeta"))
|
|
32
|
+
if (!code.includes("useServerHead") && !code.includes("useSeoMeta") && !code.includes("useSchemaOrg"))
|
|
33
33
|
return null;
|
|
34
34
|
let transformed;
|
|
35
35
|
try {
|
|
@@ -38,7 +38,8 @@ const TreeshakeServerComposables = createUnplugin((userConfig = {}) => {
|
|
|
38
38
|
transformer: [
|
|
39
39
|
RemoveFunctions([
|
|
40
40
|
"useServerHead",
|
|
41
|
-
"useSeoMeta"
|
|
41
|
+
"useSeoMeta",
|
|
42
|
+
"useSchemaOrg"
|
|
42
43
|
])
|
|
43
44
|
]
|
|
44
45
|
});
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"packageManager": "pnpm@7.18.1",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@rollup/pluginutils": "^5.0.2",
|
|
54
54
|
"unplugin": "^1.0.0",
|
|
55
55
|
"unplugin-ast": "^0.5.8",
|
|
56
|
-
"@unhead/schema": "1.0.
|
|
57
|
-
"unhead": "1.0.
|
|
56
|
+
"@unhead/schema": "1.0.10",
|
|
57
|
+
"unhead": "1.0.10"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@babel/types": "^7.20.5",
|