Skip to content

Commit

Permalink
Use ts-loader instead of babel in renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
hatton committed Mar 11, 2023
1 parent e1b958b commit 4850fe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
11 changes: 5 additions & 6 deletions .electron-react/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ let rendererConfig = {
include: [rendererPath],
},
{
test: /\.(js|jsx|ts|tsx)$/,
use: {
loader: "babel-loader",
options: {
cacheDirectory: true,
},
test: /\.(js|ts|tsx)$/,
loader: "ts-loader",
options: {
transpileOnly: true,
experimentalWatchApi: true,
},
exclude: /node_modules/,
},
Expand Down
11 changes: 0 additions & 11 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ function createWindow() {

mainWindow.loadURL(winURL);

// if (process.env.NODE_ENV === "development") {
// console.log(
// "*****If you hang when doing a 'yarn dev', it's possible that Chrome is trying to pause on a breakpoint. Disable the mainWindow.openDevTools(), run 'dev' again, open devtools (ctrl+alt+i), turn off the breakpoint settings, then renable."
// );

// mainWindow.webContents.openDevTools();
// } else if (process.env.DEBUG_BLOOMPUB_VIEWER === "yes") {
// // Sometimes it's useful to poke around to see what the production build is doing.
// mainWindow.webContents.openDevTools();
// }

/* This is still in progress, held up while we decide if we can put the necessary certificate in github
secrets. Without that, we can't sign, and without signing, we can' auto update anyways.
setupAutoUpdate();*/
Expand Down

0 comments on commit 4850fe9

Please sign in to comment.