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•3mo ago
is this about the build output that nitro is producing?
it needs to be an mjs since it is using ESM imports
constant-blueOP•3mo 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•3mo ago
oh wow that sounds ... restrictive
😉
what kind of runtime is that?
constant-blueOP•3mo ago
Salesforce commerce cloud MRT
It’s challenging 😆
other-emerald•3mo ago
are there any other restrictions?
constant-blueOP•3mo ago
it is kind of a black box so probably? But I have not been able to get past this first hurdle.