diff --git a/packages/webamp/js/actionCreators/media.ts b/packages/webamp/js/actionCreators/media.ts index 561b9d46..91491355 100644 --- a/packages/webamp/js/actionCreators/media.ts +++ b/packages/webamp/js/actionCreators/media.ts @@ -15,7 +15,7 @@ import { } from "../actionTypes"; import { MEDIA_STATUS } from "../constants"; -import { openMediaFileDialog } from "./"; +import { openMediaFileDialog } from "./files"; import { GetState, Dispatch, Thunk, Action } from "../types"; import * as Selectors from "../selectors"; diff --git a/packages/webamp/scripts/rollup.mjs b/packages/webamp/scripts/rollup.mjs index 5323aff4..4f226cba 100644 --- a/packages/webamp/scripts/rollup.mjs +++ b/packages/webamp/scripts/rollup.mjs @@ -97,7 +97,28 @@ async function build() { outputFile: bundleDesc.output.file, minify: bundleDesc.minify, }); - const bundle = await rollup({ input: bundleDesc.input, plugins }); + const bundle = await rollup({ + input: bundleDesc.input, + plugins, + onwarn: (warning, warn) => { + // Suppress expected circular dependency warnings from external libraries + if (warning.code === "CIRCULAR_DEPENDENCY") { + const message = warning.message || ""; + // Skip warnings for known external library circular dependencies + if ( + message.includes("polyfill-node") || + message.includes("readable-stream") || + message.includes("jszip") || + message.includes("music-metadata") || + message.includes("node_modules") + ) { + return; // Don't show these warnings + } + } + // Show all other warnings + warn(warning); + }, + }); await bundle.write({ sourcemap: true, ...bundleDesc.output,