diff --git a/cors/moon.pkg b/cors/moon.pkg index 738b150..16167c0 100644 --- a/cors/moon.pkg +++ b/cors/moon.pkg @@ -5,3 +5,5 @@ import { // Suppress warning 20 from MoonBit's generated native test driver. warnings = "-20" + +supported_targets = "+js+native" diff --git a/mocket.wasm.mbt b/mocket.wasm.mbt deleted file mode 100644 index f5cdd9a..0000000 --- a/mocket.wasm.mbt +++ /dev/null @@ -1,43 +0,0 @@ -///| -pub fn serve_ffi(_mocket : Mocket, port~ : Int) -> Unit { - ignore(port) - // Unimplemented - panic() -} - -///| -pub fn listen_ffi(_mocket : Mocket, address : String) -> Unit { - ignore(address) - // Unimplemented - panic() -} - -///| -pub fn ws_send(_id : String, _msg : String) -> Unit { - () -} - -///| -pub fn ws_send_bytes(_id : String, _msg : Bytes) -> Unit { - () -} - -///| -pub fn ws_pong(_id : String) -> Unit { - () -} - -///| -pub fn ws_subscribe(_id : String, _channel : String) -> Unit { - () -} - -///| -pub fn ws_unsubscribe(_id : String, _channel : String) -> Unit { - () -} - -///| -pub fn ws_publish(_channel : String, _msg : String) -> Unit { - () -} diff --git a/moon.pkg b/moon.pkg index f910147..40caff5 100644 --- a/moon.pkg +++ b/moon.pkg @@ -22,6 +22,8 @@ import { warnings = "-15-29" +supported_targets = "+js+native" + options( expose: [ "__ws_emit_js", @@ -39,8 +41,7 @@ options( "async.mbt": [ "js", "native" ], "mocket.js.mbt": [ "js" ], "mocket.native.mbt": [ "native" ], - "mocket.wasm.mbt": [ "wasm", "wasm-gc" ], - "serve.mbt": [ "js", "wasm", "wasm-gc" ], + "serve.mbt": [ "js" ], "serve.native.mbt": [ "native" ], }, ) diff --git a/static_file/moon.pkg b/static_file/moon.pkg index f763feb..0823313 100644 --- a/static_file/moon.pkg +++ b/static_file/moon.pkg @@ -6,3 +6,5 @@ import { // Suppress warning 20 from MoonBit's generated native test driver. warnings = "-20" + +supported_targets = "+js+native"