How to develop libraries #2855
-
I have a library and an app that uses it:
The library is published in the NPM registry, and the app uses it from there. I use snowpack on the app, and all is great. It's not clear to me what to do when I want to develop the library in the context of the app. The traditional NPM solution is to point to the local directory, either using a
or using I don't think the alias configuration will help here. It might point to the source within the library, but it won't help resolve the transitive dependencies of the library. I think this question is related to these other discussions, but not exactly: #1464 #2534 Ideally snowpack would recognize that the Bonus points: This is all using TypeScript, and snowpack could recognize that the TS code of the library has changed and rebuild both the library and the main app. Not a big deal if this isn't possible, I can always BTW I was initially on webpack, and this use case failed there too, which is what led me to search for something better, and I found snowpack. How do you all develop libraries and simultaneously test them from an app? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
something definitely need to be fixed |
Beta Was this translation helpful? Give feedback.
-
Support for this is going out soon! you can try it today with |
Beta Was this translation helpful? Give feedback.
Support for this is going out soon! you can try it today with
npm install snowpack@next
. More info in #2707