From 331b589a579e78adb526d8fd93dc49e20e7bce8a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:18:00 -0400 Subject: [PATCH] Drop AMD --- src/export.js | 10 ---------- test/amd.html | 29 ----------------------------- test/amd.js | 21 --------------------- 3 files changed, 60 deletions(-) delete mode 100644 test/amd.html delete mode 100644 test/amd.js diff --git a/src/export.js b/src/export.js index e0bd6da3b..8f2e264a2 100644 --- a/src/export.js +++ b/src/export.js @@ -32,16 +32,6 @@ export default function exportQUnit (QUnit) { exportedModule = true; } - // For AMD - if (typeof define === 'function' && define.amd) { - define(function () { - return QUnit; - }); - QUnit.config.autostart = false; - - exportedModule = true; - } - // For other environments, including Web Workers (globalThis === self), // SpiderMonkey (mozjs), and other embedded JavaScript engines if (!exportedModule) { diff --git a/test/amd.html b/test/amd.html deleted file mode 100644 index 3cd3dce8a..000000000 --- a/test/amd.html +++ /dev/null @@ -1,29 +0,0 @@ - - -
- -