const path = require('path'); var main = { mode: 'development', target: 'electron-main', entry: path.join(__dirname, 'src', 'index'), output: { filename: 'index.js', path: path.resolve(__dirname, 'dist') }, node: { __dirname: false, __filename: false }, module: { rules: [{ test: /.ts?$/, include: [ path.resolve(__dirname, 'src'), ], exclude: [ path.resolve(__dirname, 'node_modules'), ], loader: 't