Commit 2fc4c08
Fergus Bisset
fix(behaviours): separate React component from vanilla JS behaviours
- Create separate export path for BehavioursLoader React component
- Vanilla behaviours: @fergusbisset/nhs-fdp-design-system/behaviours
- React component: @fergusbisset/nhs-fdp-design-system/behaviours/react
- Exclude .tsx files from esbuild behaviours bundle
- Add Vite build step for React behaviours module
- Update all documentation and examples with new import path
Fixes 'Module not found' error when importing BehavioursLoader in Next.js1 parent 1f24932 commit 2fc4c08
File tree
14 files changed
+640
-169
lines changed- config
- dist
- meta
- src/behaviours
- docs
- components
- guides
- scripts
- src/behaviours
14 files changed
+640
-169
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments