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

🙋Feature request: Add support for directory watching #667

Closed
asv7c2 opened this issue Jan 25, 2018 · 5 comments
Closed

🙋Feature request: Add support for directory watching #667

asv7c2 opened this issue Jan 25, 2018 · 5 comments

Comments

@asv7c2
Copy link

asv7c2 commented Jan 25, 2018

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

@shawwn
Copy link
Contributor

shawwn commented Jan 25, 2018

Thank you! I agree, this should happen for our new Vue support. (Were you referring to it? #5 (comment))

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.

@asv7c2
Copy link
Author

asv7c2 commented Jan 25, 2018

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

@shawwn
Copy link
Contributor

shawwn commented Jan 25, 2018 via email

@davidnagli davidnagli changed the title Feature request: Add support for directory watching 🙋Feature request: Add support for directory watching Jan 26, 2018
@devongovett
Copy link
Member

The start of this happened in #1279

sainthkh added a commit to sainthkh/parcel that referenced this issue Feb 2, 2019
DeMoorJasper pushed a commit that referenced this issue Feb 13, 2019
* Add new files to the main bundle tree. And remove them when they're removed (#667)

* Fixed the failing tests because entryFiles can be null.

* Added tests for detecting dir changes and rebuilds.

* Fixed eslint problems.

* Fixed tests that depended on old utils.js file.
@mischnic
Copy link
Member

mischnic commented Mar 18, 2019

Should be fixed in 1.12.0: #2615

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

No branches or pull requests

5 participants