DEV: fixes broken tests on ember-cli due to uppy

DEV: fixes broken tests on ember-cli due to uppy

The import was not found and causing the following error:

Uncaught TypeError: Class extends value undefined is not a constructor or null
diff --git a/app/assets/javascripts/discourse-shims.js b/app/assets/javascripts/discourse-shims.js
index 3f038c1..c3eb5c9 100644
--- a/app/assets/javascripts/discourse-shims.js
+++ b/app/assets/javascripts/discourse-shims.js
@@ -32,7 +32,7 @@ define("@popperjs/core", ["exports"], function (__exports__) {
 
 define("@uppy/core", ["exports"], function (__exports__) {
   __exports__.default = window.Uppy.Core;
-  __exports__.BasePlugin = window.Uppy.BasePlugin;
+  __exports__.Plugin = window.Uppy.Core.BasePlugin;
 });
 
 define("@uppy/aws-s3", ["exports"], function (__exports__) {
diff --git a/app/assets/javascripts/discourse/app/lib/uppy-checksum-plugin.js b/app/assets/javascripts/discourse/app/lib/uppy-checksum-plugin.js
index 3e74b36..4cd0cea 100644
--- a/app/assets/javascripts/discourse/app/lib/uppy-checksum-plugin.js
+++ b/app/assets/javascripts/discourse/app/lib/uppy-checksum-plugin.js
@@ -1,8 +1,8 @@
-import { BasePlugin } from "@uppy/core";
+import { Plugin } from "@uppy/core";
 import { warn } from "@ember/debug";
 import { Promise } from "rsvp";
 
-export default class UppyChecksum extends BasePlugin {
+export default class UppyChecksum extends Plugin {
   constructor(uppy, opts) {
     super(uppy, opts);
     this.id = opts.id || "uppy-checksum";
diff --git a/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js b/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
index dcf3c31..862a55a 100644
--- a/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
+++ b/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
@@ -1,8 +1,8 @@
-import { BasePlugin } from "@uppy/core";
+import { Plugin } from "@uppy/core";
 import { warn } from "@ember/debug";
 import { Promise } from "rsvp";
 
-export default class UppyMediaOptimization extends BasePlugin {
+export default class UppyMediaOptimization extends Plugin {
   constructor(uppy, opts) {
     super(uppy, opts);
     this.id = opts.id || "uppy-media-optimization";
diff --git a/vendor/assets/javascripts/uppy.js b/vendor/assets/javascripts/uppy.js
index ef9e451..6eaffed 100644
--- a/vendor/assets/javascripts/uppy.js
+++ b/vendor/assets/javascripts/uppy.js
@@ -6,7 +6,6 @@
 // use the plugins we actually want.
 window.Uppy = {}
 Uppy.Core = require('./packages/@uppy/core/lib/index.js')
-Uppy.BasePlugin = Uppy.Core.BasePlugin
 Uppy.XHRUpload = require('./packages/@uppy/xhr-upload/lib/index.js')
 Uppy.AwsS3 = require('./packages/@uppy/aws-s3/lib/index.js')
 Uppy.AwsS3Multipart = require('./packages/@uppy/aws-s3-multipart/lib/index.js')

GitHub sha: d4a418e295d17aa5c9b8598495d71998eaf5e6ea

This commit appears in #14148 which was approved by eviltrout. It was merged by eviltrout.