mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
Add module support
This commit is contained in:
parent
dde38f5d92
commit
88330d0042
2 changed files with 16 additions and 0 deletions
11
desktop.js
Normal file
11
desktop.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { app as electron, BrowserWindow as Window } from "electron";
|
||||||
|
|
||||||
|
electron.on('ready', () => {
|
||||||
|
const main = new Window();
|
||||||
|
main.loadURL(`file://${__dirname}/index.html`);
|
||||||
|
main.setMenuBarVisibility(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
electron.on('window-all-closed', () => {
|
||||||
|
electron.quit();
|
||||||
|
})
|
||||||
5
esm-bridge.js
Normal file
5
esm-bridge.js
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
require = require("esm")(module, {
|
||||||
|
await: true,
|
||||||
|
//force: true
|
||||||
|
});
|
||||||
|
module.exports = require("./desktop.js");
|
||||||
Loading…
Add table
Add a link
Reference in a new issue