forked from rescript-lang/rescript-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dynamic
import
(rescript-lang#178)
* upgrade rescript to v11 * format files * add import * update tests * update CHANGELOG.md
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Generated by ReScript, PLEASE EDIT WITH CARE | ||
|
||
import * as Test from "./Test.mjs"; | ||
|
||
async function main() { | ||
var eq = await import("./IntTests.mjs").then(function (m) { | ||
return m.eq; | ||
}); | ||
return Test.run([ | ||
[ | ||
"ImportTests.res", | ||
5, | ||
22, | ||
55 | ||
], | ||
"dynamic import - Int tests - eq" | ||
], 1, eq, 1); | ||
} | ||
|
||
export { | ||
main , | ||
} | ||
/* Test Not a pure module */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
open RescriptCore | ||
|
||
let main = async () => { | ||
let eq = await import(IntTests.eq) | ||
Test.run(__POS_OF__("dynamic import - Int tests - eq"), 1, eq, 1) | ||
} | ||
|
||
main->ignore |