Skip to content

Avoid node:fs dependency in sql.js#32

Open
chrisbaume wants to merge 1 commit intowillwade:mainfrom
sonicbaume:sqljs-remove-nodefs-dependency
Open

Avoid node:fs dependency in sql.js#32
chrisbaume wants to merge 1 commit 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

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