Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hot-reload/compile not working with single file components #18
Using a single file component, with
<template src="./button.html" /> <style lang="scss" scoped src="./button.scss" />
Changes made to either of those files respectivly, doesn't cause any recompiling of Parcel. I have to go into SomeComponent.vue and re-save that file for it to compile.
referenced this issue
Jan 20, 2018
I investigated this quite a bit since yesterday as it is the same for LESS or any other included files.
The problem seems to happen because the referenced files aren't being recognized as implicit component dependencies in the assets pipeline, and thus do not trigger the parent's (Vue file) recompilation.
Luckily we have access to the delegate property (from the constructor's options) so it could probably be resolved without messing with Parcel's source code.