@cloudflare/vite-plugin 1.0.0 → 1.0.1
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 +3 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -14639,7 +14639,9 @@ function cloudflare2(pluginConfig = {}) {
|
|
|
14639
14639
|
},
|
|
14640
14640
|
async transform(code, id) {
|
|
14641
14641
|
const workerConfig = getWorkerConfig2(this.environment.name);
|
|
14642
|
-
|
|
14642
|
+
if (!workerConfig) {
|
|
14643
|
+
return;
|
|
14644
|
+
}
|
|
14643
14645
|
const resolvedId = await this.resolve(workerConfig.main);
|
|
14644
14646
|
if (id === resolvedId?.id) {
|
|
14645
14647
|
return injectGlobalCode(id, code);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"unenv": "2.0.0-rc.15",
|
|
41
41
|
"ws": "8.18.0",
|
|
42
42
|
"@cloudflare/unenv-preset": "2.3.1",
|
|
43
|
-
"miniflare": "4.
|
|
44
|
-
"wrangler": "4.
|
|
43
|
+
"miniflare": "4.20250405.0",
|
|
44
|
+
"wrangler": "4.8.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@cloudflare/workers-types": "^4.
|
|
47
|
+
"@cloudflare/workers-types": "^4.20250405.0",
|
|
48
48
|
"@types/node": "^22.10.1",
|
|
49
49
|
"@types/ws": "^8.5.13",
|
|
50
50
|
"magic-string": "^0.30.12",
|