@astrojs/cloudflare 13.5.3 → 13.5.4
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.
- package/dist/entrypoints/preview.js +1 -1
- package/dist/index.js +7 -3
- package/package.json +2 -2
|
@@ -88,7 +88,7 @@ function serverStart({
|
|
|
88
88
|
host,
|
|
89
89
|
base
|
|
90
90
|
}) {
|
|
91
|
-
const version = "13.5.
|
|
91
|
+
const version = "13.5.4";
|
|
92
92
|
const localPrefix = `${colors.dim("\u2503")} Local `;
|
|
93
93
|
const networkPrefix = `${colors.dim("\u2503")} Network `;
|
|
94
94
|
const emptyPrefix = " ".repeat(11);
|
package/dist/index.js
CHANGED
|
@@ -133,6 +133,7 @@ function createIntegration({
|
|
|
133
133
|
"@astrojs/prism > prismjs/dependencies.js"
|
|
134
134
|
];
|
|
135
135
|
const isAstroPrismPackageInstalled = await getIsAstroPrismInstalled(config.root);
|
|
136
|
+
const userOptimizeDeps = config.vite?.optimizeDeps;
|
|
136
137
|
updateConfig({
|
|
137
138
|
build: {
|
|
138
139
|
redirects: false
|
|
@@ -195,7 +196,8 @@ function createIntegration({
|
|
|
195
196
|
"astro/jsx-runtime",
|
|
196
197
|
"astro/app/entrypoint/dev",
|
|
197
198
|
"astro/virtual-modules/middleware.js",
|
|
198
|
-
...isAstroPrismPackageInstalled ? prismFiles : []
|
|
199
|
+
...isAstroPrismPackageInstalled ? prismFiles : [],
|
|
200
|
+
...Array.isArray(userOptimizeDeps?.include) ? userOptimizeDeps.include : []
|
|
199
201
|
],
|
|
200
202
|
exclude: [
|
|
201
203
|
"unstorage/drivers/cloudflare-kv-binding",
|
|
@@ -203,7 +205,8 @@ function createIntegration({
|
|
|
203
205
|
"virtual:astro:*",
|
|
204
206
|
"virtual:astro-cloudflare:*",
|
|
205
207
|
"virtual:@astrojs/*",
|
|
206
|
-
"@astrojs/starlight"
|
|
208
|
+
"@astrojs/starlight",
|
|
209
|
+
...Array.isArray(userOptimizeDeps?.exclude) ? userOptimizeDeps.exclude : []
|
|
207
210
|
],
|
|
208
211
|
esbuildOptions: {
|
|
209
212
|
// Suppress Vite's `createRequire(import.meta.url)` banner to work around
|
|
@@ -211,7 +214,8 @@ function createIntegration({
|
|
|
211
214
|
// incorrectly rewrites identifiers inside `import.meta` when an imported
|
|
212
215
|
// binding shares the same name (e.g. zod v4 exports `meta`).
|
|
213
216
|
banner: { js: "" },
|
|
214
|
-
plugins: [astroFrontmatterScanPlugin()]
|
|
217
|
+
plugins: [astroFrontmatterScanPlugin()],
|
|
218
|
+
...userOptimizeDeps?.esbuildOptions?.loader ? { loader: userOptimizeDeps.esbuildOptions.loader } : {}
|
|
215
219
|
}
|
|
216
220
|
}
|
|
217
221
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers",
|
|
4
|
-
"version": "13.5.
|
|
4
|
+
"version": "13.5.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"cheerio": "1.2.0",
|
|
54
54
|
"devalue": "^5.6.3",
|
|
55
55
|
"prismjs": "^1.30.0",
|
|
56
|
-
"astro": "6.3.
|
|
56
|
+
"astro": "6.3.7",
|
|
57
57
|
"astro-scripts": "0.0.14"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|