File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,7 @@ dist/sql-asm.js: $(BITCODE_FILES) $(OUTPUT_WRAPPER_FILES) $(SOURCE_API_FILES) $(
106
106
rm out/tmp-raw.js
107
107
108
108
dist/sql-wasm.js : $(BITCODE_FILES ) $(OUTPUT_WRAPPER_FILES ) $(SOURCE_API_FILES ) $(EXPORTED_METHODS_JSON_FILES )
109
- $(EMCC ) $(EMFLAGS ) $(EMFLAGS_OPTIMIZED ) $(EMFLAGS_WASM ) $(BITCODE_FILES ) $(EMFLAGS_PRE_JS_FILES ) -o $@
110
- mv $@ out/tmp-raw.js
111
- cat src/shell-pre.js out/tmp-raw.js src/shell-post.js > $@
112
- rm out/tmp-raw.js
109
+ $(EMCC ) $(EMFLAGS ) $(EMFLAGS_OPTIMIZED ) -s MODULARIZE=1 $(EMFLAGS_WASM ) $(BITCODE_FILES ) $(EMFLAGS_PRE_JS_FILES ) -o $@
113
110
114
111
dist/sql-wasm-module.js : $(BITCODE_FILES ) $(OUTPUT_WRAPPER_FILES ) $(SOURCE_API_FILES ) $(EXPORTED_METHODS_JSON_FILES )
115
112
$(EMCC ) $(EMFLAGS ) $(EMFLAGS_OPTIMIZED ) $(EMFLAGS_ESMODULE ) $(EMFLAGS_WASM ) $(BITCODE_FILES ) $(EMFLAGS_PRE_JS_FILES ) -o $@
Original file line number Diff line number Diff line change
1
+ const def = await require ( "./dist/sql-wasm.cjs" )
2
+ const inner = await def ( )
3
+
4
+ export const Database = inner . Database ;
Original file line number Diff line number Diff line change 20
20
"browser" : {
21
21
"./module.js" : " ./module-web.js"
22
22
},
23
+ "type" : " module" ,
23
24
"types" : " ./types.d.ts" ,
24
25
"scripts" : {
25
26
"build" : " make" ,
You can’t perform that action at this time.
0 commit comments