We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f45ba commit 6460d3bCopy full SHA for 6460d3b
src/main.rs
@@ -30,10 +30,15 @@ fn main() {
30
let transpiled_code = transpiled_code
31
.replace(
32
"import * as ReqlangExpr from \"@reqlang-expr-tspl/runtime\";",
33
- &JSRUNTIME_SOURCE,
+ &JSRUNTIME_SOURCE.replace("export ", ""),
34
)
35
.replace(&REQLANG_OBJ_PREFIX, "")
36
- .replace("import arg from \"arg\";", ARG_SOURCE);
+ .replace(
37
+ "import arg from \"arg\";",
38
+ &ARG_SOURCE
39
+ .replace("module.exports = arg;", "")
40
+ .replace("export ", ""),
41
+ );
42
43
println!(
44
"// @ts-nocheck\n/*\n{ARG_LICENSE}\n*/\n/*\n{LICENSE}\n*/\n{}",
0 commit comments