Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Jul 9, 2024
1 parent a5daf60 commit 53164ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/babel-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ describe('convert template with hot reload helpers', () => {
strictMode: true,
scope: () => ({
template__imports__
})
})
}), templateOnly());
export default setComponentTemplate(precompileTemplate("\\n {{(template__imports__.myhelper)}}\\n {{component template__imports__.SomeComponent}}\\n <template__imports__.SomeComponent />\\n <template__imports__.NamedComponent />\\n ", {
strictMode: true,
scope: () => ({
template__imports__
}),
})
}), templateOnly());
if (import.meta.hot) {
import.meta.hot.accept('my-components', module => template__imports__.NamedComponent = module['NamedComponent']);
Expand Down

0 comments on commit 53164ff

Please sign in to comment.