mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 03:51:56 +00:00
Add an option to detect node at runtime
Sometimes builds are done once and used in both the browser and in node, so add an option to do runtime detection if necessary
This commit is contained in:
@@ -3,6 +3,7 @@ extern crate test_support;
|
||||
#[test]
|
||||
fn works() {
|
||||
test_support::project()
|
||||
.detect_node(true)
|
||||
.file("src/lib.rs", r#"
|
||||
#![feature(proc_macro)]
|
||||
|
||||
|
Reference in New Issue
Block a user