Initial commit: Fresh start with current state
This commit is contained in:
17
src/FoundryVTT-11.315/resources/app/main.js
Normal file
17
src/FoundryVTT-11.315/resources/app/main.js
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Require Node.js v14+
|
||||
const nodeVer = process.versions.node;
|
||||
if (nodeVer.split(".").shift() < 16) {
|
||||
console.error(`[ERROR] You are using Node.js version ${nodeVer}. Foundry Virtual Tabletop requires Node.js version 16.x or greater.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap the Node.js loader to support ESM imports
|
||||
* Required until https://github.com/electron/electron/issues/21457#issuecomment-815770296 is resolved
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
(async function() {
|
||||
await import("./main.mjs");
|
||||
})();
|
||||
Reference in New Issue
Block a user