Skip to content

Commit

Permalink
Core: Remove built-in AMD export
Browse files Browse the repository at this point in the history
Closes #1729.
  • Loading branch information
NullVoxPopuli authored and Krinkle committed Jun 19, 2024
1 parent df5d59b commit bdf560c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/export.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global module, exports, define */
/* global module, exports */
import { window, document, globalThis } from './globals';

export default function exportQUnit (QUnit) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit bdf560c

Please sign in to comment.