Skip to content

Commit

Permalink
add watch for original
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jul 11, 2024
1 parent 6135933 commit 8f5af71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/addon-dev/src/rollup-hbs-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default function rollupHbsPlugin({
let hbsFilename = id.replace(/\.\w{1,3}$/, '') + '.hbs';
if (hbsFilename !== id) {
this.addWatchFile(hbsFilename);
if (getMeta(this, id)?.type === 'template-only-component-js') {
this.addWatchFile(id);
}
}
if (hbsFilter(id)) {
// rollup looses watch of deleted files
// this.addWatchFile(id.replace(/\.hbs$/, '.js'));
// this.addWatchFile(id.replace(/\.hbs$/, '.ts'));
return {
code: hbsToJS(code),
};
Expand Down

0 comments on commit 8f5af71

Please sign in to comment.