Commit ee86939
fix: Build frontend package before publishing to npm
The package was shipping raw JSX (main: src/index.jsx) which webpack in
MFE builds cannot process since babel-loader excludes node_modules by
default.
Follows the same pattern as @openedx/frontend-plugin-framework:
- Use fedx-scripts babel to compile src/ -> dist/ before publishing
- Set main to dist/index.js
- Add files: ["dist"] to publish only compiled output
- Add @openedx/frontend-build as a devDependency for fedx-scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c8c3634 commit ee86939
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
0 commit comments