Commit a98f0d1
Add canvas: false webpack alias to fix browser build
The canvas module is a server-side dependency used by prismarine-viewer
(in entities.js and atlas.js). In browser builds, the native Canvas API
is available instead. Adding canvas: false to webpack aliases prevents
the "Module not found: Error: Can't resolve 'canvas'" build failure.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3fc8be3 commit a98f0d1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments