fedeya / remix-sitemap

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

ESM Support #65

Open pcfreak30 opened 11 months ago

pcfreak30 commented 11 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 7 months ago

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

affanshahid commented 4 months ago

Blocked by this as well