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:
πŸ”΄ ERROR | Failed to resolve './240c7a708a5899b1-5d418f573af6dce0.js' from './240c7a708a5899b1-5d418f573af6dce0.js'
πŸ”΄ EXIT | πŸ‘‹ Good bye and have a great day!
πŸ”΄ ERROR | Failed to resolve './240c7a708a5899b1-5d418f573af6dce0.js' from './240c7a708a5899b1-5d418f573af6dce0.js'
πŸ”΄ EXIT | πŸ‘‹ Good bye and have a great day!
6 Replies
lab
labβ€’2y ago
Can you try it with --no-hoist?
nahtnam
nahtnamOPβ€’2y ago
Works
lab
labβ€’2y ago
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 (?)...
nahtnam
nahtnamOPβ€’2y ago
Gotcha, sounds good. Thanks!
lab
labβ€’2y ago
@nahtnam so this would work:
lab
labβ€’2y ago
I just need to add the https scheme argh nvm... that doesn't seem to bundle the import xd......
Want results from more Discord servers?
Add your server