Compare commits

...

2 Commits

Author SHA1 Message Date
Florian Rival
46338bf314 Bump newIDE version 2018-08-28 00:32:32 +01:00
Florian Rival
0a7880f98e Fix monaco-editor/vs/loader.js breaking libraries (as defining "define" globally) 2018-08-28 00:27:31 +01:00
4 changed files with 7 additions and 3 deletions

View File

@@ -56,9 +56,11 @@
</script>
<script src="%PUBLIC_URL%/External/monaco-editor-min/vs/loader.js"></script>
<script>
// Restore back the Node.js require (Electron)
// Restore back the Node.js require (Electron) and delete "define" which can
// trick some libraries into thinking they are in an AMD (RequireJS) environment.
amdRequire = require;
require = nodeRequire;
define = undefined;
// Set up Monaco Editor workers support
amdRequire.config({

View File

@@ -1,8 +1,8 @@
// @flow
import optionalRequire from './OptionalRequire.js';
const archiver = optionalRequire('archiver');
const fs = optionalRequire('fs');
const archiver = optionalRequire('archiver');
/**
* Archive the given folder to a file. Only available when running on Electron runtime.

View File

@@ -26,6 +26,8 @@ const optionalRequire = (moduleName, config = {
return null;
} catch (ex) {
if (config.rethrowException) throw ex;
console.error('Exception while requiring module (from optionalRequire):', ex);
return null;
}
}

View File

@@ -2,7 +2,7 @@
"name": "gdevelop",
"productName": "GDevelop 5",
"description": "GDevelop 5 IDE running on the Electron runtime",
"version": "5.0.0-beta49",
"version": "5.0.0-beta50",
"author": "Florian Rival",
"license": "MIT",
"homepage": "http://gdevelop-app.com",