mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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 ```
This commit is contained in:
parent
506a5dc607
commit
d4a418e295
@ -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__) {
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
1
vendor/assets/javascripts/uppy.js
vendored
1
vendor/assets/javascripts/uppy.js
vendored
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user