Skip to content

Commit

Permalink
fix(template/typescript-webpack): magic constant is a string w/commen…
Browse files Browse the repository at this point in the history
…ts about what it's for (#2166)
  • Loading branch information
malept committed Feb 18, 2021
1 parent 90f122c commit f15b5c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/template/typescript-webpack/tmpl/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { app, BrowserWindow } from 'electron';
declare const MAIN_WINDOW_WEBPACK_ENTRY: any;
// This allows TypeScript to pick up the magic constant that's auto-generated by Forge's Webpack
// plugin that tells the Electron app where to look for the Webpack-bundled app code (depending on
// whether you're running in development or production).
declare const MAIN_WINDOW_WEBPACK_ENTRY: string;

// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
Expand Down

0 comments on commit f15b5c7

Please sign in to comment.