From 336012e664a76576ccb2ee09d33dfa21152f0b20 Mon Sep 17 00:00:00 2001 From: Aliullov Vlad <91639107+GoodDayForSurf@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:25:57 +0400 Subject: [PATCH] Fix strange SystemJs behaviour when it loads module with empty export i.e : (#2832) If module contains only string: "Object.defineProperty(exports, "__esModule", { value: true });" then SystemJs throw Exception: "ReferenceError: exports is not defined" --- JSDemos/configs/Angular/config.js | 2 +- JSDemos/configs/React/config.js | 1 + JSDemos/configs/Vue/config.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/JSDemos/configs/Angular/config.js b/JSDemos/configs/Angular/config.js index a8d7b25f3a7..b0673573cc5 100644 --- a/JSDemos/configs/Angular/config.js +++ b/JSDemos/configs/Angular/config.js @@ -1,7 +1,7 @@ // In real applications, you should not transpile code in the browser. // You can see how to create your own application with Angular and DevExtreme here: // https://js.devexpress.com/Documentation/Guide/Angular_Components/Getting_Started/Create_a_DevExtreme_Application/ - +window.exports = window.exports || {}; window.config = { transpiler: 'ts', typescriptOptions: { diff --git a/JSDemos/configs/React/config.js b/JSDemos/configs/React/config.js index 1e3680029ff..5fb9e8d2dd5 100644 --- a/JSDemos/configs/React/config.js +++ b/JSDemos/configs/React/config.js @@ -1,3 +1,4 @@ +window.exports = window.exports || {}; window.config = { transpiler: 'ts', typescriptOptions: { diff --git a/JSDemos/configs/Vue/config.js b/JSDemos/configs/Vue/config.js index 9b125e812ee..d70ad320726 100644 --- a/JSDemos/configs/Vue/config.js +++ b/JSDemos/configs/Vue/config.js @@ -1,3 +1,4 @@ +window.exports = window.exports || {}; window.config = { transpiler: 'plugin-babel', meta: {