Skip to content

Commit e06d3b9

Browse files
committed
Add back polyfills
1 parent b5bf64a commit e06d3b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/webamp/scripts/rollupPlugins.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export function getPlugins({ minify, outputFile, vite }) {
2323
// https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
2424
// TODO: We could offer a version which does not inline React/React-DOM
2525
nodeResolve(),
26+
// Needed for music-metadata-browser in the Webamp bundle which depends upon
27+
// being able to use some polyfillable node APIs
28+
nodePolyfills(),
2629
typescript({
2730
compilerOptions: {
2831
jsx: "react-jsx",

0 commit comments

Comments
 (0)