From 3f80470e26fd0012ffcb3bdc74626bc410d07a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 7 Aug 2023 17:18:13 +0200 Subject: [PATCH] extensions-app: Port config to ESM The app uses a different Config module than the rest of the code base, so we can port it separately. Part-of: --- subprojects/extensions-app/js/main.js | 2 +- subprojects/extensions-app/js/misc/config.js.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index bc6ad4b52..75d34b617 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -10,7 +10,7 @@ const Package = imports.package; Package.initFormat(); -const Config = imports.misc.config; +import * as Config from './misc/config.js'; import * as ExtensionUtils from './misc/extensionUtils.js'; import {ExtensionState, ExtensionType} from './misc/extensionUtils.js'; diff --git a/subprojects/extensions-app/js/misc/config.js.in b/subprojects/extensions-app/js/misc/config.js.in index 94c005953..0bce56149 100644 --- a/subprojects/extensions-app/js/misc/config.js.in +++ b/subprojects/extensions-app/js/misc/config.js.in @@ -1 +1 @@ -var PROFILE = '@PROFILE@'; +export const PROFILE = '@PROFILE@';