Skip to content

Commit

Permalink
Build: Drop built-in support for AMD export
Browse files Browse the repository at this point in the history
* Remove AMD export.
* Remove eslint globals entry.

Closes #1729.
  • Loading branch information
NullVoxPopuli authored Oct 27, 2023
1 parent 230fc40 commit 3018cde
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 61 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
29 changes: 0 additions & 29 deletions test/amd.html

This file was deleted.

21 changes: 0 additions & 21 deletions test/amd.js

This file was deleted.

0 comments on commit 3018cde

Please sign in to comment.