This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,3 @@
(lang dune 3.8)
(using melange 0.1)

View file

@ -0,0 +1,11 @@
(library
(name lib)
(modules y)
(modes melange))
(melange.emit
(target simple)
(alias mel)
(modules x)
(emit_stdlib false)
(libraries lib))

View file

@ -0,0 +1,3 @@
let buy_it = "buy " ^ Lib.Y.it
let () = Js.log buy_it

View file

@ -0,0 +1,6 @@
Using `melange.emit` inside the same folder as the library works fine
$ output=lib/simple
$ dune build @mel
$ node _build/default/$output/lib/x.js
buy it