Skip to content

Commit

Permalink
add-dev: HBS files were not watched for rebuilds
Browse files Browse the repository at this point in the history
When developing a v2 addon, you don't get automatic rebuilds when you touch an HBS file. This fixes that.
  • Loading branch information
ef4 committed Jul 1, 2022
1 parent 98bba67 commit 19011e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/addon-dev/src/rollup-hbs-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function rollupHbsPlugin(): Plugin {

switch (meta.type) {
case 'template':
this.addWatchFile(meta.originalId);
let input = readFileSync(meta.originalId, 'utf8');
let code = hbsToJS(input);
return {
Expand Down

0 comments on commit 19011e3

Please sign in to comment.