Entrypoint exports are stripped out for AMD format. #2854
Unanswered
siva-sundar
asked this question in
Q&A
Replies: 1 comment
-
Hi @siva-sundar, have you resolved this problem? I have a similar issue: that entry point export is not included in the AMD. Thanks for any tips! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to build a Preact App with ViteJS. Would like to mount it dynamically instead of rendering it in an Index.html page. However, the exports mentioned in the entry point file is stripped out.
Here is the implementation,
preact-app/src/main.jsx
Mounting part
require('preact-app/main')
returnsundefined
as the default export is stripped out.vite-js-config.
Any help would be really appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions