Skip to content

Commit

Permalink
change dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgross committed Sep 6, 2024
1 parent f452cab commit a6d3f6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/trpc-panel/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const defaultParseRouterOptions: Partial<TrpcPanelExtraOptions> = {
transformer: "superjson",
};

const __dirname = dirname(fileURLToPath(import.meta.url));
const directoryName = dirname(fileURLToPath(import.meta.url));
const javascriptReplaceSymbol = "{{js}}";
const cssReplaceSymbol = "{{css}}";
const routerReplaceSymbol = '"{{parsed_router}}"';
const optionsReplaceSymbol = '"{{options}}"';
const bundlePath = __dirname + "/react-app/bundle.js";
const indexPath = __dirname + "/react-app/index.html";
const cssPath = __dirname + "/react-app/index.css";
const bundlePath = directoryName + "/react-app/bundle.js";
const indexPath = directoryName + "/react-app/index.html";
const cssPath = directoryName + "/react-app/index.css";
const bundleJs = fs.readFileSync(bundlePath).toString();
const indexHtml = fs.readFileSync(indexPath).toString();
const indexCss = fs.readFileSync(cssPath).toString();
Expand Down

0 comments on commit a6d3f6b

Please sign in to comment.