Commit 8627c93
committed
feat: migrate to Module Federation 2.0
Replace the moduleEntry.ts (which combined defineModule + window.__NKZ__.register)
with a clean src/Module.tsx that exports defineModule({...}) only. The
@nekazari/module-builder@2.0.0 preset wires it as a federated remote.
- Lazy-load components/MainView as main.
- Extract i18n bundle registration into src/i18n.ts.
- Add nkz.moduleId (id remains 'nkz-module-eu-elevation' for marketplace_modules
compatibility) and drop obsolete preset options.1 parent 22ba3e9 commit 8627c93
6 files changed
Lines changed: 399 additions & 87 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | | - | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments