@cloudflare/vite-plugin 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -12910,7 +12910,7 @@ globalThis.${globalName} = var_${globalName}.${exportName};
12910
12910
  }
12911
12911
  function resolveNodeJSImport(source) {
12912
12912
  const alias = env.alias[source];
12913
- if (alias) {
12913
+ if (alias && !nodeCompatExternals.has(alias)) {
12914
12914
  return {
12915
12915
  unresolved: alias,
12916
12916
  resolved: resolvePathSync(alias, { url: import.meta.url })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -40,12 +40,12 @@
40
40
  "tinyglobby": "^0.2.12",
41
41
  "unenv": "2.0.0-rc.15",
42
42
  "ws": "8.18.0",
43
+ "miniflare": "4.20250408.0",
43
44
  "@cloudflare/unenv-preset": "2.3.1",
44
- "miniflare": "4.20250405.1",
45
- "wrangler": "4.9.0"
45
+ "wrangler": "4.9.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@cloudflare/workers-types": "^4.20250405.0",
48
+ "@cloudflare/workers-types": "^4.20250408.0",
49
49
  "@types/node": "^22.10.1",
50
50
  "@types/ws": "^8.5.13",
51
51
  "magic-string": "^0.30.12",
@@ -56,8 +56,8 @@
56
56
  "vite": "^6.1.0",
57
57
  "vitest": "~3.0.8",
58
58
  "@cloudflare/mock-npm-registry": "0.0.0",
59
- "@cloudflare/workers-shared": "0.17.1",
60
- "@cloudflare/workers-tsconfig": "0.0.0"
59
+ "@cloudflare/workers-tsconfig": "0.0.0",
60
+ "@cloudflare/workers-shared": "0.17.1"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "vite": "^6.1.0",