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

Use vite to build library #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

macklinu
Copy link

@macklinu macklinu commented Mar 3, 2024

Hello, I was blocked from using this library in Remix (same issue as #76). I wasn't sure how to modify the existing build system to fix the issue, but switching to Vite could be a simpler way to build this library that isn't dependent on all of the create-react-app config. I ran the new build script (vite build) and linked it to a project of mine, and now the Avatar component renders as expected.

Are you open to this as a fix? I'd be happy to swap the demo over to Vite as well and get rid of a bunch of CRA & webpack dependencies to simplify - let me know and I'll open a couple issues.

Thanks!

Copy link

github-actions bot commented Apr 2, 2024

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Apr 2, 2024
@macklinu
Copy link
Author

macklinu commented Apr 3, 2024

Not stale

@github-actions github-actions bot removed the Stale label Apr 3, 2024
Copy link

github-actions bot commented May 4, 2024

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label May 4, 2024
@@ -22,7 +29,7 @@
],
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"build": "vite build",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also use a library like tsup if you'd prefer.

@macklinu
Copy link
Author

macklinu commented May 5, 2024

Not stale

@github-actions github-actions bot removed the Stale label May 5, 2024
@corygibbons
Copy link

I could really use this all well.

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

Successfully merging this pull request may close these issues.

None yet

2 participants