@unhead/addons 1.9.11 → 1.9.12
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.
|
@@ -38,8 +38,9 @@ const TreeshakeServerComposables = createUnplugin((options = {}) => {
|
|
|
38
38
|
return false;
|
|
39
39
|
},
|
|
40
40
|
async transform(code, id) {
|
|
41
|
-
if (!code.includes("useServerHead") && !code.includes("useServerHeadSafe") && !code.includes("useServerSeoMeta") && !code.includes("useSchemaOrg"))
|
|
41
|
+
if (!code.includes("useServerHead") && !code.includes("useServerHeadSafe") && !code.includes("useServerSeoMeta") && !code.includes("useSchemaOrg")) {
|
|
42
42
|
return;
|
|
43
|
+
}
|
|
43
44
|
let transformed;
|
|
44
45
|
try {
|
|
45
46
|
transformed = await transform(code, id, {
|
|
@@ -44,8 +44,9 @@ const TreeshakeServerComposables = unplugin.createUnplugin((options = {}) => {
|
|
|
44
44
|
return false;
|
|
45
45
|
},
|
|
46
46
|
async transform(code, id) {
|
|
47
|
-
if (!code.includes("useServerHead") && !code.includes("useServerHeadSafe") && !code.includes("useServerSeoMeta") && !code.includes("useSchemaOrg"))
|
|
47
|
+
if (!code.includes("useServerHead") && !code.includes("useServerHeadSafe") && !code.includes("useServerSeoMeta") && !code.includes("useSchemaOrg")) {
|
|
48
48
|
return;
|
|
49
|
+
}
|
|
49
50
|
let transformed;
|
|
50
51
|
try {
|
|
51
52
|
transformed = await unpluginAst.transform(code, id, {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.
|
|
1
|
+
import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.63341a68.mjs';
|
|
2
2
|
import 'node:url';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import 'unplugin-ast';
|
package/dist/webpack.cjs
CHANGED
package/dist/webpack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.
|
|
1
|
+
import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.63341a68.mjs';
|
|
2
2
|
import 'node:url';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import 'unplugin-ast';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.12",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"ufo": "^1.5.3",
|
|
56
56
|
"unplugin": "^1.10.1",
|
|
57
57
|
"unplugin-ast": "^0.10.0",
|
|
58
|
-
"@unhead/
|
|
59
|
-
"@unhead/
|
|
58
|
+
"@unhead/shared": "1.9.12",
|
|
59
|
+
"@unhead/schema": "1.9.12"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/types": "^7.24.
|
|
62
|
+
"@babel/types": "^7.24.6",
|
|
63
63
|
"estree-walker": "^3.0.3"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|