Replies: 1 comment 4 replies
-
Hey @padcom , did you get anywhere with this? I've run into the same issue, the refresh was working fine in parcel-bundler, but I've updated to parcel V2 and now changes in the library do not cause the main project to refresh. Incredibly frustrating when you're building a library and testing it on the fly in a separate project. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
following a bit on discussion #8087 I am looking for a unified way of working with libraries. Normally, to link a dependency one would use
npm link
but it seems that Parcel has a different understanding of what to do when a package innode_modules
is linked.So here's the setup I'd like to use:
$ parcel watch
$ npm link
ed or referenced usingfile:../my-lib
, which usually works with other bundlersThe last point does a refresh, but only if no symlinks are used (so won't work with the
file:...
protocol) and it's too weak, because the new code doesn't get included in the page until a manual full page reload. In the scenario where I'd manually create the package folder undernode_modules
in the final product and manually copy files fromlib/dist
toapp/node_modules/lib/dist
then the manual refresh works, but that is very inconvenient...I'd like to know how to instruct Parcel to not resolve any symbolic links and just treat every folder and file as-is instead. Is that at all possible?
Beta Was this translation helpful? Give feedback.
All reactions