Parcel: 🙋Feature request: Add support for directory watching

Created on 25 Jan 2018  Â·  5Comments  Â·  Source: parcel-bundler/parcel

Currently, parcel can import recursive all files in folder (ex: require('./folder/*')). But it doesn't rebuild file that imports directory when a new file is created in directory.

It is useful with Vue single component files. For every new created component I must restart parcel myself.

In webpack it called Require.context

Feature

Most helpful comment

All 5 comments

Thank you! I agree, this should happen for our new Vue support. (Were you referring to it? https://github.com/parcel-bundler/parcel/issues/5#issuecomment-359168173)

If you still have to restart Parcel while using that, let me know and I'll make sure it's solid for when we release Vue.

It is more about general support at parcel core for watching folder.

Ah, yes agreed. Thanks!

On Thu, Jan 25, 2018 at 10:49 AM, Alexander notifications@github.com
wrote:

It is more about general support at parcel core for watching folder.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/parcel-bundler/parcel/issues/667#issuecomment-360527096,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADo8BErZQg4y1dwdEX3v2pcJqyV9j54ks5tOLCPgaJpZM4RtIiT
.

Was this page helpful?
0 / 5 - 0 ratings