remix-express template use .mjs
file extension for server.js
entry point (es-modules)
#5497
Replies: 2 comments 2 replies
-
@pcattori - After the new remix dev server work is stabilized, I believe this might no longer be a concern, since with the new remix dev server, you won't need to use Mostly decided to write up this Q&A discussion in case future remix users on older versions of remix or using older dev server see this while attempting to use @machour @MichaelDeBoey - we'll probably need to create a follow up ticket to update, what do you think?
I was going to create an issue about this, but didn't want to jump into things without verifying References |
Beta Was this translation helpful? Give feedback.
-
Remix community memeber @xHomu created a really nice repository showing how to setup the new v2 dev server 🎉 Github Repo: https://github.com/xHomu/remix-v2-server |
Beta Was this translation helpful? Give feedback.
-
Currently the remix-express template, generates a
server.js
file (common-js format).How could I make
purgeRequireCache
work when using converting my server.js to es-modules (server.mjs)?The
require
&require.cache
wont work if you convert the file to es-module.Is there a recommended approach for using es-modules format (
server.js
---> `server.mjs) whileBeta Was this translation helpful? Give feedback.
All reactions