rsbuild-plugin-cloudflare 0.0.2 → 0.0.3
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __name } from "./chunk-53YJWLG7-_ps118Xl.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import fs4, { constants as constants$1 } from "node:fs/promises";
|
|
5
|
-
import
|
|
5
|
+
import path from "node:path";
|
|
6
6
|
import { promisify } from "node:util";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -15,7 +15,7 @@ createRequire(import.meta.url || (typeof __filename === "string" ? __filename :
|
|
|
15
15
|
var isDockerCached;
|
|
16
16
|
function hasDockerEnv() {
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
fs.statSync("/.dockerenv");
|
|
19
19
|
return true;
|
|
20
20
|
} catch {
|
|
21
21
|
return false;
|
|
@@ -24,7 +24,7 @@ function hasDockerEnv() {
|
|
|
24
24
|
__name(hasDockerEnv, "hasDockerEnv");
|
|
25
25
|
function hasDockerCGroup() {
|
|
26
26
|
try {
|
|
27
|
-
return
|
|
27
|
+
return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
28
28
|
} catch {
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
@@ -38,7 +38,7 @@ __name(isDocker, "isDocker");
|
|
|
38
38
|
var cachedResult;
|
|
39
39
|
var hasContainerEnv = /* @__PURE__ */ __name(() => {
|
|
40
40
|
try {
|
|
41
|
-
|
|
41
|
+
fs.statSync("/run/.containerenv");
|
|
42
42
|
return true;
|
|
43
43
|
} catch {
|
|
44
44
|
return false;
|
|
@@ -56,7 +56,7 @@ var isWsl = /* @__PURE__ */ __name(() => {
|
|
|
56
56
|
return true;
|
|
57
57
|
}
|
|
58
58
|
try {
|
|
59
|
-
return
|
|
59
|
+
return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
60
60
|
} catch {
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
@@ -309,8 +309,8 @@ async function defaultBrowser2() {
|
|
|
309
309
|
__name(defaultBrowser2, "defaultBrowser");
|
|
310
310
|
var is_in_ssh_default = Boolean(process$1.env.SSH_CONNECTION || process$1.env.SSH_CLIENT || process$1.env.SSH_TTY);
|
|
311
311
|
var fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
312
|
-
var __dirname$1 = import.meta.url ?
|
|
313
|
-
var localXdgOpenPath =
|
|
312
|
+
var __dirname$1 = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
|
|
313
|
+
var localXdgOpenPath = path.join(__dirname$1, "xdg-open");
|
|
314
314
|
var { platform, arch: arch$1 } = process$1;
|
|
315
315
|
var tryEachApp = /* @__PURE__ */ __name(async (apps2, opener) => {
|
|
316
316
|
if (apps2.length === 0) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region ../../workers-sdk/packages/vite-plugin-cloudflare/package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@cloudflare/vite-plugin",
|
|
4
|
-
version: "2.0.0-beta.v.
|
|
4
|
+
version: "2.0.0-beta.v.8",
|
|
5
5
|
description: "Cloudflare plugin for Vite",
|
|
6
6
|
keywords: [
|
|
7
7
|
"cloudflare",
|
|
@@ -57,12 +57,11 @@ var package_default = {
|
|
|
57
57
|
"@cloudflare/workers-tsconfig": "workspace:*",
|
|
58
58
|
"@cloudflare/workers-types": "catalog:default",
|
|
59
59
|
"@cloudflare/workers-utils": "workspace:*",
|
|
60
|
-
"@remix-run/node-fetch-server": "^0.
|
|
60
|
+
"@remix-run/node-fetch-server": "^1.0.0",
|
|
61
61
|
"@types/node": "catalog:default",
|
|
62
62
|
"@types/semver": "^7.5.1",
|
|
63
63
|
"@types/ws": "^8.5.13",
|
|
64
64
|
"am-i-vibing": "^0.5.0",
|
|
65
|
-
"defu": "^6.1.4",
|
|
66
65
|
"get-port": "^7.1.0",
|
|
67
66
|
"magic-string": "^0.30.12",
|
|
68
67
|
"mlly": "^1.7.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsbuild-plugin-cloudflare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Cloudflare plugin for Rsbuild (experimental)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@cloudflare/build-output-utils": "0.9.
|
|
38
|
-
"@cloudflare/config": "0.
|
|
39
|
-
"@cloudflare/runtime-types": "0.1.
|
|
37
|
+
"@cloudflare/build-output-utils": "0.9.6",
|
|
38
|
+
"@cloudflare/config": "0.29.0",
|
|
39
|
+
"@cloudflare/runtime-types": "0.1.19",
|
|
40
40
|
"@cloudflare/unenv-preset": "2.16.2",
|
|
41
|
-
"miniflare": "5.
|
|
41
|
+
"miniflare": "5.20261023.3-beta",
|
|
42
42
|
"unenv": "2.0.0-rc.24",
|
|
43
43
|
"ws": "8.21.0"
|
|
44
44
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@cloudflare/workers-tsconfig": "link:../../workers-sdk/packages/workers-tsconfig",
|
|
47
47
|
"@cloudflare/workers-types": "5.20261023.1",
|
|
48
48
|
"@cloudflare/workers-utils": "link:../../workers-sdk/packages/workers-utils",
|
|
49
|
-
"@rsbuild/core": "^2.
|
|
49
|
+
"@rsbuild/core": "^2.3.0",
|
|
50
50
|
"@types/node": "22.15.17",
|
|
51
51
|
"cf": "1.0.0-beta.17",
|
|
52
52
|
"get-port": "^7.2.0",
|