diff --git a/packages/skin-museum-client/package.json b/packages/skin-museum-client/package.json index e9294b23..d1d101cb 100644 --- a/packages/skin-museum-client/package.json +++ b/packages/skin-museum-client/package.json @@ -32,7 +32,7 @@ }, "scripts": { "start": "react-scripts start", - "build-webamp": "cd ../webamp && yarn build-library", + "build-webamp": "cd ../webamp && yarn prepublishOnly", "build": "yarn build-webamp && react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", diff --git a/packages/skin-museum-client/src/WebampComponent.js b/packages/skin-museum-client/src/WebampComponent.js index d7ae4492..2ace6daf 100644 --- a/packages/skin-museum-client/src/WebampComponent.js +++ b/packages/skin-museum-client/src/WebampComponent.js @@ -15,7 +15,9 @@ class WebampComponent extends React.Component { } async _loadWebamp() { - const Webamp = (await import("webamp")).default; + // TODO: Fix export + await import("webamp"); + const Webamp = window.Webamp; if (this._disposable.disposed) { return; }