sql.js icon indicating copy to clipboard operation
sql.js copied to clipboard

Release file sql-wasm.js doesn't support JSON1 after rebuilding, but debug one does.

Open thachnb85 opened this issue 5 years ago • 0 comments

Hi, I clone the project and did the modification in makefile to support JSON1.

CFLAGS = \
	-O2 \
	-DSQLITE_OMIT_LOAD_EXTENSION \
	-DSQLITE_DISABLE_LFS \
	-DSQLITE_ENABLE_FTS3 \
	-DSQLITE_ENABLE_FTS3_PARENTHESIS \
	-DSQLITE_ENABLE_FTS5 \
    	-DSQLITE_ENABLE_JSON1 \
	-DSQLITE_THREADSAFE=0 \
	-DSQLITE_ENABLE_NORMALIZE

Then rebuild

npm run rebuild

The output files in dist folder, I found that only debug one (sql-wasm-debug.js) supports JSON1 by running some test code. But the release file sql-wasm.js doesn't support JSON1.

Is there any idea how to resolve this issue? Thank you

thachnb85 avatar Mar 12 '21 18:03 thachnb85