Hardcoded boundaries
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