ROpdebee / mb-userscripts

Collection of userscripts for MusicBrainz
MIT License
119 stars 9 forks source link

build: Fix dynamic import of metadata modules on Windows (again) #780

Closed kellnerd closed 3 months ago

kellnerd commented 3 months ago

I already did this in #34, but it was reverted when we switched from ESM to CJS in #147. Now that a2e7fc7 reintroduced ESM with tsx, we need this patch again.

See the problem discussion at https://github.com/ROpdebee/mb-userscripts/pull/779#issuecomment-2242718714 and https://github.com/kellnerd/userscript-bundler/issues/4.

kellnerd commented 3 months ago

A quick check under Linux confirmed that the build process is still working as well.