wrangler 0.0.0-de73fa2 → 0.0.0-e22f9d7
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/package.json +1 -1
- package/src/dev.tsx +2 -4
- package/src/pages.tsx +3 -3
- package/wrangler-dist/cli.js +5 -8
- package/wrangler-dist/cli.js.map +2 -2
package/package.json
CHANGED
package/src/dev.tsx
CHANGED
|
@@ -441,7 +441,7 @@ function useEsbuild(props: {
|
|
|
441
441
|
const { entry, destination, staticRoot, jsxFactory, jsxFragment } = props;
|
|
442
442
|
const [bundle, setBundle] = useState<EsbuildBundle>();
|
|
443
443
|
useEffect(() => {
|
|
444
|
-
let result: esbuild.BuildResult;
|
|
444
|
+
let result: esbuild.BuildResult | undefined;
|
|
445
445
|
async function build() {
|
|
446
446
|
if (!destination || !entry) return;
|
|
447
447
|
const moduleCollector = makeModuleCollector();
|
|
@@ -508,9 +508,7 @@ function useEsbuild(props: {
|
|
|
508
508
|
// so this is a no-op error handler
|
|
509
509
|
});
|
|
510
510
|
return () => {
|
|
511
|
-
|
|
512
|
-
result.stop();
|
|
513
|
-
}
|
|
511
|
+
result?.stop?.();
|
|
514
512
|
};
|
|
515
513
|
}, [entry, destination, staticRoot, jsxFactory, jsxFragment]);
|
|
516
514
|
return bundle;
|
package/src/pages.tsx
CHANGED
|
@@ -938,9 +938,9 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
|
|
|
938
938
|
console.log(`Serving at http://127.0.0.1:${port}/`);
|
|
939
939
|
|
|
940
940
|
if (process.env.BROWSER !== "none") {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
941
|
+
const childProcess = await open(`http://127.0.0.1:${port}/`);
|
|
942
|
+
// fail silently if the open command doesn't work (e.g. in GitHub Codespaces)
|
|
943
|
+
childProcess.on("error", (_err) => {});
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
if (directory !== undefined && liveReload) {
|
package/wrangler-dist/cli.js
CHANGED
|
@@ -111896,7 +111896,7 @@ var import_http = __toModule(require("http"));
|
|
|
111896
111896
|
var import_react2 = __toModule(require_react());
|
|
111897
111897
|
|
|
111898
111898
|
// package.json
|
|
111899
|
-
var version = "0.0.0-
|
|
111899
|
+
var version = "0.0.0-e22f9d7";
|
|
111900
111900
|
|
|
111901
111901
|
// src/inspect.ts
|
|
111902
111902
|
function useInspector(props) {
|
|
@@ -112892,9 +112892,7 @@ function useEsbuild(props) {
|
|
|
112892
112892
|
build2().catch((_err) => {
|
|
112893
112893
|
});
|
|
112894
112894
|
return () => {
|
|
112895
|
-
|
|
112896
|
-
result.stop();
|
|
112897
|
-
}
|
|
112895
|
+
result?.stop?.();
|
|
112898
112896
|
};
|
|
112899
112897
|
}, [entry, destination, staticRoot, jsxFactory, jsxFragment]);
|
|
112900
112898
|
return bundle;
|
|
@@ -122546,10 +122544,9 @@ var pages = (yargs) => {
|
|
|
122546
122544
|
const server = await miniflare.startServer();
|
|
122547
122545
|
console.log(`Serving at http://127.0.0.1:${port}/`);
|
|
122548
122546
|
if (process.env.BROWSER !== "none") {
|
|
122549
|
-
|
|
122550
|
-
|
|
122551
|
-
}
|
|
122552
|
-
}
|
|
122547
|
+
const childProcess2 = await (0, import_open3.default)(`http://127.0.0.1:${port}/`);
|
|
122548
|
+
childProcess2.on("error", (_err) => {
|
|
122549
|
+
});
|
|
122553
122550
|
}
|
|
122554
122551
|
if (directory !== void 0 && liveReload) {
|
|
122555
122552
|
(0, import_chokidar2.watch)([directory], {
|