@cloudflare/vite-plugin 0.1.20 → 0.1.21
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/index.js +11 -12
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -13828,8 +13828,7 @@ var nonApplicableWorkerConfigs = {
|
|
|
13828
13828
|
"preserve_file_names",
|
|
13829
13829
|
"rules",
|
|
13830
13830
|
"site",
|
|
13831
|
-
"tsconfig"
|
|
13832
|
-
"upload_source_maps"
|
|
13831
|
+
"tsconfig"
|
|
13833
13832
|
]
|
|
13834
13833
|
};
|
|
13835
13834
|
var nullableNonApplicable = [
|
|
@@ -13840,8 +13839,7 @@ var nullableNonApplicable = [
|
|
|
13840
13839
|
"no_bundle",
|
|
13841
13840
|
"preserve_file_names",
|
|
13842
13841
|
"site",
|
|
13843
|
-
"tsconfig"
|
|
13844
|
-
"upload_source_maps"
|
|
13842
|
+
"tsconfig"
|
|
13845
13843
|
];
|
|
13846
13844
|
function readWorkerConfig(configPath, env2) {
|
|
13847
13845
|
const nonApplicable = {
|
|
@@ -14420,12 +14418,12 @@ function cloudflare2(pluginConfig = {}) {
|
|
|
14420
14418
|
viteDevServer.httpServer,
|
|
14421
14419
|
"Unexpected error: No Vite HTTP server"
|
|
14422
14420
|
);
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14421
|
+
if (!miniflare) {
|
|
14422
|
+
const inputInspectorPort = await getInputInspectorPortOption(
|
|
14423
|
+
pluginConfig,
|
|
14424
|
+
viteDevServer
|
|
14425
|
+
);
|
|
14426
|
+
miniflare = new Miniflare(
|
|
14429
14427
|
getDevMiniflareOptions(
|
|
14430
14428
|
resolvedPluginConfig,
|
|
14431
14429
|
viteDevServer,
|
|
@@ -14433,11 +14431,12 @@ function cloudflare2(pluginConfig = {}) {
|
|
|
14433
14431
|
)
|
|
14434
14432
|
);
|
|
14435
14433
|
} else {
|
|
14436
|
-
|
|
14434
|
+
const resolvedInspectorPort = await getResolvedInspectorPort(pluginConfig);
|
|
14435
|
+
await miniflare.setOptions(
|
|
14437
14436
|
getDevMiniflareOptions(
|
|
14438
14437
|
resolvedPluginConfig,
|
|
14439
14438
|
viteDevServer,
|
|
14440
|
-
|
|
14439
|
+
resolvedInspectorPort ?? false
|
|
14441
14440
|
)
|
|
14442
14441
|
);
|
|
14443
14442
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"tinyglobby": "^0.2.12",
|
|
40
40
|
"unenv": "2.0.0-rc.15",
|
|
41
41
|
"ws": "8.18.0",
|
|
42
|
-
"
|
|
43
|
-
"miniflare": "4.20250321.
|
|
44
|
-
"
|
|
42
|
+
"wrangler": "4.7.1",
|
|
43
|
+
"miniflare": "4.20250321.2",
|
|
44
|
+
"@cloudflare/unenv-preset": "2.3.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@cloudflare/workers-types": "^4.20250321.0",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"undici": "^5.28.5",
|
|
55
55
|
"vite": "^6.1.0",
|
|
56
56
|
"vitest": "~3.0.8",
|
|
57
|
-
"@cloudflare/workers-shared": "0.17.1",
|
|
58
57
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
58
|
+
"@cloudflare/workers-shared": "0.17.1",
|
|
59
59
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|