Skip to content

Commit

Permalink
fix DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jul 18, 2023
1 parent a468741 commit abf8f56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/start/islands/mount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function hydrateServerRouter() {
if (!Component || !el.dataset.hk) return;

let hk = el.dataset.hk;
DEBUG("hydrating island", el.dataset.island, hk.slice(0, hk.length - 1) + `1-`, el);
_$DEBUG("hydrating island", el.dataset.island, hk.slice(0, hk.length - 1) + `1-`, el);

let props = createStore({
...JSON.parse(el.dataset.props!),
Expand Down
8 changes: 4 additions & 4 deletions packages/start/vite/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import babelServerModule from "../server/server-functions/babel.js";
import routeResource from "../server/serverResource.js";

// @ts-ignore
globalThis.DEBUG = debug("start:vite");
globalThis._$DEBUG = debug("start:vite");
let _dirname = dirname(fileURLToPath(import.meta.url));

/**
Expand Down Expand Up @@ -98,7 +98,7 @@ function solidStartConfig(options) {
options.rootEntry = join(_dirname, "..", "virtual", "root.tsx");
}

DEBUG(options);
_$DEBUG(options);

return {
root,
Expand Down Expand Up @@ -135,7 +135,7 @@ function solidStartConfig(options) {
"import.meta.env.START_ISLANDS_ROUTER": JSON.stringify(
options.experimental.islandsRouter ? true : false
),
DEBUG: process.env.NODE_ENV === "production" ? "(() => {})" : "globalThis.DEBUG",
_$DEBUG: process.env.NODE_ENV === "production" ? "(() => {})" : "globalThis._$DEBUG",
"import.meta.env.START_ADAPTER": JSON.stringify(
typeof options.adapter === "string"
? options.adapter
Expand Down Expand Up @@ -663,7 +663,7 @@ export default function solidStart(options) {
options ?? {}
);

DEBUG("options", options);
_$DEBUG("options", options);

return [
solidStartConfig(options),
Expand Down

0 comments on commit abf8f56

Please sign in to comment.