fix es6 module not getting built properly

This commit is contained in:
ading2210 2024-02-26 23:03:23 -05:00
parent d79c07e2a4
commit b0314bf8cb
2 changed files with 2 additions and 2 deletions

View file

@ -91,4 +91,4 @@ python3 tools/patch_js.py $FRAGMENTS_DIR $OUT_FILE
#generate es6 module #generate es6 module
cp $OUT_FILE $ES6_FILE cp $OUT_FILE $ES6_FILE
sed -i 's/window.libcurl/export const libcurl/' $ES6_FILE sed -i 's/const libcurl/export const libcurl/' $ES6_FILE

View file

@ -1,6 +1,6 @@
{ {
"name": "libcurl.js", "name": "libcurl.js",
"version": "0.3.4", "version": "0.3.5",
"description": "An experimental port of libcurl to WebAssembly for use in the browser.", "description": "An experimental port of libcurl to WebAssembly for use in the browser.",
"main": "libcurl.mjs", "main": "libcurl.mjs",
"scripts": { "scripts": {