Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Aug 27, 2024
1 parent a528e7e commit 2bea12d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/addon-dev/src/rollup-hbs-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function rollupHbsPlugin({
let syntheticId = needsSyntheticComponentJS(source, resolution.id);
if (syntheticId) {
this.addWatchFile(source);
this.addWatchFile(syntheticId);
return {
id: syntheticId,
meta: {
Expand All @@ -84,13 +85,6 @@ export default function rollupHbsPlugin({
},

transform(code: string, id: string) {
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)) {
return null;
}
Expand Down

0 comments on commit 2bea12d

Please sign in to comment.