Skip to content

Avoid node:fs dependency in sql.js#32

Merged
willwade merged 5 commits intowillwade:mainfrom
sonicbaume:sqljs-remove-nodefs-dependency
Mar 11, 2026
Merged

Avoid node:fs dependency in sql.js#32
willwade merged 5 commits intowillwade:mainfrom
sonicbaume:sqljs-remove-nodefs-dependency

Conversation

@chrisbaume
Copy link
Contributor

@chrisbaume chrisbaume commented Mar 10, 2026

I was unable to bundle aac-processors as import('sql.js') has a dependency on node:fs. This has been resolved in sql.js (see here). This PR uses window.initSqlJs to load the browser-specific variant of sql.js, avoiding the dependency. It passes the tests, but I've not done a real-life test using a browser yet.

@willwade
Copy link
Owner

Great. @chrisbaume let me know if you get a chance to test - if its before me (I wont have a chance till at least mid week next week) then great.. and ill merge if good

@chrisbaume
Copy link
Contributor Author

chrisbaume commented Mar 11, 2026

Screenshot 2026-03-11 at 15 43 30

@willwade Got it working in vitedemo. I've updated the README too. Think it's good to go now 👍

If you wouldn't mind doing a release then I'll be able to build and release my app. Thanks 🙏

@willwade willwade merged commit 7913cff into willwade:main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants