From e06d3b9b3ed7f284aba7fa7087052f2b8a3c63e6 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 4 Jul 2025 11:02:02 -0700 Subject: [PATCH] Add back polyfills --- packages/webamp/scripts/rollupPlugins.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/webamp/scripts/rollupPlugins.mjs b/packages/webamp/scripts/rollupPlugins.mjs index ded2f57a..0c8ee1c2 100644 --- a/packages/webamp/scripts/rollupPlugins.mjs +++ b/packages/webamp/scripts/rollupPlugins.mjs @@ -23,6 +23,9 @@ export function getPlugins({ minify, outputFile, vite }) { // https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency // TODO: We could offer a version which does not inline React/React-DOM nodeResolve(), + // Needed for music-metadata-browser in the Webamp bundle which depends upon + // being able to use some polyfillable node APIs + nodePolyfills(), typescript({ compilerOptions: { jsx: "react-jsx",