fedeya / remix-sitemap

Sitemap generator for Remix applications
https://npmjs.com/remix-sitemap
MIT License
95 stars 5 forks source link

ESM Support #65

Open pcfreak30 opened 8 months ago

pcfreak30 commented 8 months ago

I have found that you are using https://www.npmjs.com/package/require-from-string which is very old and does not properly support ESM.

One of my routes uses an ESM library I have written and this chokes the require-from-string -> esbuild processing with the usual cannot import ESM from CJS.

This is going to force me to try a runtime-based processing.

Kudos!

mogadanez commented 4 months ago

probably need replace with https://github.com/exuanbo/module-from-string

affanshahid commented 1 month ago

Blocked by this as well