remix-sitemap icon indicating copy to clipboard operation
remix-sitemap copied to clipboard

ESM Support

Open pcfreak30 opened this issue 2 years ago • 2 comments

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!

pcfreak30 avatar Dec 27 '23 12:12 pcfreak30

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

mogadanez avatar Apr 21 '24 23:04 mogadanez

Blocked by this as well

affanshahid avatar Jul 22 '24 01:07 affanshahid