Use default export regardless

This is the only way I could get Kotlin/JS to work with Vizality. So far, I haven't seen any other plugins break, but it's a good idea to test this a bit.
pull/96/head
Valentine 2 years ago committed by GitHub
parent e836488ae3
commit 7cf510c15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -239,7 +239,7 @@ export default class AddonManager extends Events {
try {
const addonModule = await import(resolve(this.dir, addonId));
const Addon = addonModule?.__esModule ? addonModule.default : addonModule;
const Addon = addonModule.default;
Object.defineProperties(Addon?.prototype, {
addonId: {

Loading…
Cancel
Save