Skip to content

Hardcoded boundaries

Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 04 Apr 22:23
· 68 commits to main since this release

Changes

If using import.meta.hot?.boundary in your code is not of your taste, you can now hardcode the list of files that you want to be hot reloadable and marked as boundaries in the hot.init options using glob patterns in the boundaries option.

await hot.init({
  root: import.meta.filename,
  boundaries: ['../app/**/controllers/*.ts'],
})

This will have the same effect as marking imports of these files with import.meta.hot.boundary attribute

Commits

  • fix: matching with relative parent glob pattern (59e80d2)
  • feat: add hardcoded boundaries options (9f6331c)

Full Changelog: v0.1.2...v0.1.3