-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(macro/vite): cjs import in vite macro #517
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d3e844f:
|
btw, do you want to support vite 3? |
@dai-shi Is there any problem with Vite 3, let me know if you see any issue there. |
@dai-shi I don't think there's a real problem there, let's keep it as is! |
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Do we wait for a response in #512?
@dai-shi I believe we should do, it'd be better! |
progress, but now fails on the import from
to test this I used this build:
|
@beaugunderson Feel free to try it now! |
hmm, still no go:
|
@beaugunderson Could you share your node version? |
@Aslemammad yes, it's |
just tried via |
here is a minimal codesandbox that shows the failure: https://codesandbox.io/s/vite-react-ts-forked-gm49m0?file=/package.json I appreciate your work on getting this fixed btw! |
@beaugunderson Thank you mate, I'm trying to fix it! hope I can deliver it soon! |
this might actually be a little better; vite links to stackblitz for their various templates; this is the |
note that in the |
@beaugunderson It now works on my system with your repro, feel free to try it out. |
Resolves #512
This is a trial to fix the cjs import issue with converting the normal import to node cjs compatible import!