Commit 50b9ea2
committed
fix(build): add webpack config for Node.js module fallbacks
- Configure webpack to exclude fs and path modules from browser builds
- Works with parser's conditional fs import for browser compatibility
- Enables successful Next.js build with parser v1.2.0
This fix allows the website to build while parser retains @include
directive functionality for CLI users.1 parent 831ecad commit 50b9ea2
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
0 commit comments