Commit 3a62957
committed
Fix browser compatibility by switching to UMD module format
Changed TypeScript compilation from CommonJS to UMD (Universal Module Definition) to support both browser and Node.js environments. The previous CommonJS format was causing "exports is not defined" errors in the GitHub Pages demo.
Changes:
- Updated tsconfig.json to use UMD module format
- Removed redundant manual module.exports checks from source files
- UMD wrapper now handles all export scenarios (Node.js, AMD, browser globals)
- Kept window assignments for browser global access1 parent 16fd501 commit 3a62957
File tree
7 files changed
+1266
-1272
lines changed- docs
- src
7 files changed
+1266
-1272
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments