T
TanStack3mo ago
constant-blue

Is there anyway use an index.js rather than .mjs as an entry?

It doesn’t seem like there is any control over the build files??
6 Replies
other-emerald
other-emerald3mo ago
is this about the build output that nitro is producing? it needs to be an mjs since it is using ESM imports
constant-blue
constant-blueOP3mo ago
Yeah.. I have a restricted runtime that is a common js lambda. Trying to figure out a way to make it work over here lol.
other-emerald
other-emerald3mo ago
oh wow that sounds ... restrictive 😉 what kind of runtime is that?
constant-blue
constant-blueOP3mo ago
Salesforce commerce cloud MRT It’s challenging 😆
other-emerald
other-emerald3mo ago
are there any other restrictions?
constant-blue
constant-blueOP3mo ago
it is kind of a black box so probably? But I have not been able to get past this first hurdle.

Did you find this page helpful?