1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
@@ -1,6 +1,27 @@ // Warning: You almost certainly do *not* want to edit this code - // instead, you want to edit src/js/main.jsx instead + +function PatchSnapshot() { + const edmLiteD = snapshotResult.customRequire('@axosoft/edm-lite-d/src/d.js'); + snapshotResult.customRequire.cache['@axosoft/edm-lite-d/src/d.js'] = { + exports: function() { + let response = JSON.parse(edmLiteD(...arguments).toString('utf8')); + if ('licenseExpiresAt' in response || 'licensedFeatures' in response) { + response = { + ...response, + availableTrialDays: null, + licenseExpiresAt: 8640000000000000, + licensedFeatures: ['pro'] + }; + } + return Buffer.from(JSON.stringify(response), 'utf8'); + } + }; +} + (function() { + PatchSnapshot(); + const Perf = snapshotResult.customRequire('./src/js/utils/Performance.js'); Perf.timeEnd('loading monaco scripts'); Perf.time('index.js pre-bootstrap');
|