Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

support vite #375

Closed
wjf-richard opened this issue May 6, 2022 · 7 comments
Closed

support vite #375

wjf-richard opened this issue May 6, 2022 · 7 comments

Comments

@wjf-richard
Copy link

now this plug-in just support webpack but i would to support vite .what i can do?

@kamilogorek
Copy link
Contributor

kamilogorek commented May 8, 2022

I never worked with Vite so there's not much I can help here tbh.
You need to work out how to inject the cli into the artifact creation workflow, and once they are produced, you need to use sentry-cli JS API and send them to us - https://github.com/getsentry/sentry-cli/blob/master/js/releases/index.js

This won't be a part of this repository though, as it'll need to be a completely separate plugin.

Feel free to create a community-driven plugin repository, and ping me there, I'll try to help :)

Cheers!

@daniluk4000
Copy link

@kamilogorek, @ikenfin wrote this: https://github.com/ikenfin/vite-plugin-sentry

Seems to be really short realization that just works

@daniluk4000
Copy link

@kamilogorek this Vite plugin has already thousands of downloads. Do you still have no plans in Sentry to add this plugin as part of your repo maybe with @ikenfin help?

@Lms24
Copy link
Member

Lms24 commented Oct 28, 2022

Hi @daniluk4000, good news - we're working on supporting Vite... and esbuild and rollup 😃

We started working on creating a unified bundler plugin for the most popular bundlers based on unjs/unplugin. You can follow our progress in our roadmap to the first stable release. Our goal is to support Vite, Rollup and esbuild first. Eventually, we're planning on replacing the webpack plugin with this new project.

We're happy to hear your feedback and of course, PRs are always welcome :)

@daniluk4000
Copy link

@Lms24 that's soooo great to hear! I'll take a look for sure.

@ikenfin
Copy link

ikenfin commented Oct 31, 2022

@daniluk4000 in case of sentry pals are interested - i would be happy to transfer my repo to their project, because that could help many users to find and use it. Btw, the unplugin mentioned by @Lms24 is an amazing idea, i will look deep into it to find how i can help

@Lms24
Copy link
Member

Lms24 commented Oct 31, 2022

I @ikenfin thanks for your reply. It's always great to see tools being created by our community. Personally, I've used your Vite plugin in a few of my Vue and Svelte projects.

Also, thanks for offering to transfer your repo to Sentry. I've brought it up in our team and for now we decided to hold off from transferring it because we're focused on our new bundler plugin project.

If you want to help out on this project, feel free to reach out in our repository. We're still in early stages of development but take a look at our roadmap to follow our progress. PRs are always welcome :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants