Remote Code fails build
Hey,
If I add this line
import 'https://tally.so/widgets/embed.js';
, it works in the dev server but fails my build with the following error:
6 Replies
Can you try it with
--no-hoist
?Works
I will add a note to the docs about this
But it's very likely that the dead-code eliminator is too aggressive when module with no visible side-effect.
Will need to investigate how to mitigate that as well.. perhaps declare these module to have side effect so the deadcode cleaner doesn't just remove them (?)...
Gotcha, sounds good. Thanks!
@nahtnam so this would work:
I just need to add the
https
scheme
argh nvm...
that doesn't seem to bundle the import xd......