Skip to content

Commit cdd53ff

Browse files
browningjpclaude
andcommitted
Restore browser field for Vite compatibility
The browser field was accidentally removed, causing Vite to use the raw CommonJS entry point instead of the pre-bundled UMD file. This resulted in "Class extends value undefined" errors because Vite doesn't polyfill Node.js built-ins like the events module. Fixes #216 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5ca638b commit cdd53ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"url": "https://github.com/oozcitak/xmlbuilder2/issues"
1919
},
2020
"main": "./lib/index",
21+
"browser": "./lib/xmlbuilder2.min.js",
2122
"type": "commonjs",
2223
"engines": {
2324
"node": ">=20.0"

0 commit comments

Comments
 (0)