Skip to content
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

Usage without babel #162

Closed
nickwang0808 opened this issue Jul 19, 2024 · 1 comment · Fixed by #190
Closed

Usage without babel #162

nickwang0808 opened this issue Jul 19, 2024 · 1 comment · Fixed by #190

Comments

@nickwang0808
Copy link

I have a vite project running https://github.com/vitejs/vite-plugin-react-swc, how can I add this to it?

@guyca
Copy link
Collaborator

guyca commented Jul 20, 2024

Hey @nickwang0808 👋
I pushed an example repository where I integrated Obsidian into a Vite-SWC app without Babel.

It basically involves:

  1. Updating vite.config.js
  2. Manually naming each dependency
  3. Accessing dependencies via a single dependency object

We should definitely add a Vite plugin that will allow you to use Obsidian as intended.

Let me know how this works for you. You can also contact me on Discord if you have any questions.

@guyca guyca pinned this issue Aug 10, 2024
@guyca guyca mentioned this issue Nov 13, 2024
4 tasks
@guyca guyca closed this as completed in 0b53d20 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants