···196196 # Assert that HTML docs have been written
197197 ls build/dev/docs/lib_project/index.html
198198 ls build/dev/docs/lib_project/index.css
199199- ls build/dev/docs/lib_project/gleam.js
199199+ ls build/dev/docs/lib_project/gleam.mjs
200200 ls build/dev/docs/lib_project/index.html
201201 ls build/dev/docs/lib_project/lib_project.html
···33expression: "\n\nfn go(x, foo) {\n let a = 1\n foo(a)\n let a = 2\n foo(a)\n let #(a, 3) = x\n let b = a\n foo(b)\n let c = {\n let a = a\n #(a, b)\n }\n foo(a)\n // make sure arguments are counted in initial state\n let x = c\n x\n}\n"
4455---
66-import { throwError } from "../gleam.js";
66+import { throwError } from "../gleam.mjs";
7788function go(x, foo) {
99 let a = 1;
···33expression: "import other\npub const main = other.Two(1)\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export const main = new $other.Two(1);
99
···33expression: "import other\npub const main = other.Two(b: 2, c: 3, a: 1)\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export const main = new $other.Two(1, 2, 3);
99
···33expression: "import other\npub const main = other.Two(1)\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export const main = new $other.Two(1);
99
···33expression: "import other\npub const main = other.Two(field: 1)\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export const main = new $other.Two(1);
99
···33expression: "import other.{Two}\npub const main = Two(1)\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export const main = new Two(1);
1010
···33expression: "import other.{Two}\npub const main = Two(b: 2, c: 3, a: 1)\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export const main = new Two(1, 2, 3);
1010
···33expression: "import other.{Two}\npub const main = Two(1)\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export const main = new Two(1);
1010
···33expression: "import other.{Two}\npub const main = Two(field: 1)\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export const main = new Two(1);
1010
···33expression: "import other\nconst x = other.Two\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788const x = new $other.Two();
99
···33expression: "import other.{Two}\nconst a = Two\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899const a = new Two();
1010
···33expression: "import other\npub fn main() {\n other.Two(1)\n}"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export function main() {
99 return new $other.Two(1);
···33expression: "import other\npub fn main() {\n other.Two(1)\n}"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export function main() {
99 return new $other.Two(1);
···33expression: "import other.{Two}\n\npub fn main(x) {\n case x {\n Two(a: 1, ..) -> 1\n other.Two(b: 2, c: c, ..) -> c\n _ -> 3\n }\n}\n"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main(x) {
1010 if (x instanceof Two && x.a === 1) {
···33expression: "import other\npub fn main() {\n other.Two(field: 1)\n}"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export function main() {
99 return new $other.Two(1);
···33expression: "import other\n\npub fn main() {\n other.One\n}\n"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export function main() {
99 return new $other.One();
···33expression: "import other.{Two}\npub fn main() {\n Two\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return (var0, var1, var2) => { return new Two(var0, var1, var2); };
···33expression: "import other.{Two}\npub fn main() {\n Two(1)\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return new Two(1);
···33expression: "import other.{Two}\npub fn main() {\n Two(b: 2, c: 3, a: 1)\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return new Two(1, 2, 3);
···33expression: "import other.{Two}\npub fn main() {\n Two(1)\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return new Two(1);
···33expression: "import other.{Two}\npub fn main() {\n Two(field: 1)\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return new Two(1);
···33expression: "import other\npub fn main() {\n other.Two\n}"
4455---
66-import * as $other from "../other.js";
66+import * as $other from "../other.mjs";
7788export function main() {
99 return new $other.Two();
···33expression: "import other.{Two}\npub fn main() {\n Two\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two } from "../other.mjs";
8899export function main() {
1010 return new Two();
···33expression: "import other.{Two as Three}\npub fn main() {\n Three\n}"
4455---
66-import * as $other from "../other.js";
77-import { Two as Three } from "../other.js";
66+import * as $other from "../other.mjs";
77+import { Two as Three } from "../other.mjs";
8899export function main() {
1010 return new Three();
···33expression: "import for.{class as while} as function\n\npub fn export() {\n let delete = function.class\n while()\n}\n"
4455---
66-import * as $function from "../for.js";
77-import { class$ as while$ } from "../for.js";
66+import * as $function from "../for.mjs";
77+import { class$ as while$ } from "../for.mjs";
8899export function export$() {
1010 let delete$ = $function.class$;
···33expression: "\nimport rocket_ship as boop\npub fn go() { boop.x }\n"
4455---
66-import * as $boop from "../rocket_ship.js";
66+import * as $boop from "../rocket_ship.mjs";
7788export function go() {
99 return $boop.x;
···33expression: "\nimport rocket_ship as boop\npub fn go() { boop.go() }\n"
4455---
66-import * as $boop from "../rocket_ship.js";
66+import * as $boop from "../rocket_ship.mjs";
7788export function go() {
99 return $boop.go();
···33expression: "import rocket_ship.{launch as boom_time}\npub fn go() { boom_time() }\n"
4455---
66-import * as $rocket_ship from "../rocket_ship.js";
77-import { launch as boom_time } from "../rocket_ship.js";
66+import * as $rocket_ship from "../rocket_ship.mjs";
77+import { launch as boom_time } from "../rocket_ship.mjs";
8899export function go() {
1010 return boom_time();
···33expression: "import rocket_ship.{a,b as bb}\npub fn go() { a() + bb() }\n"
4455---
66-import * as $rocket_ship from "../rocket_ship.js";
77-import { a, b as bb } from "../rocket_ship.js";
66+import * as $rocket_ship from "../rocket_ship.mjs";
77+import { a, b as bb } from "../rocket_ship.mjs";
8899export function go() {
1010 return a() + bb();
···33expression: "import gleam\npub fn go() { gleam.Error(1) }\n"
4455---
66-import * as $gleam from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
7788export function go() {
99 return new $gleam.Error(1);
···33expression: "import gleam\npub fn go() { gleam.Ok(1) }\n"
4455---
66-import * as $gleam from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
7788export function go() {
99 return new $gleam.Ok(1);
···33expression: "import gleam.{Error as Thing}\npub fn main() { Thing(1) }"
4455---
66-import * as $gleam from "../gleam.js";
77-import { Error as Thing } from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
77+import { Error as Thing } from "../gleam.mjs";
8899export function main() {
1010 return new Thing(1);
···33expression: "import gleam.{Error as Thing}\npub fn main() { Thing }"
4455---
66-import * as $gleam from "../gleam.js";
77-import { Error as Thing } from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
77+import { Error as Thing } from "../gleam.mjs";
8899export function main() {
1010 return (var0) => { return new Thing(var0); };
···33expression: "import gleam.{Ok as Thing}\npub fn main() { Thing(1) }"
4455---
66-import * as $gleam from "../gleam.js";
77-import { Ok as Thing } from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
77+import { Ok as Thing } from "../gleam.mjs";
8899export function main() {
1010 return new Thing(1);
···33expression: "import gleam.{Ok as Thing}\npub fn main() { Thing }"
4455---
66-import * as $gleam from "../gleam.js";
77-import { Ok as Thing } from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
77+import { Ok as Thing } from "../gleam.mjs";
8899export function main() {
1010 return (var0) => { return new Thing(var0); };
···33expression: "pub fn main() { Ok(1) }"
4455---
66-import { Ok } from "../gleam.js";
66+import { Ok } from "../gleam.mjs";
7788export function main() {
99 return new Ok(1);
···33expression: "pub fn main() { Ok }"
4455---
66-import { Ok } from "../gleam.js";
66+import { Ok } from "../gleam.mjs";
7788export function main() {
99 return (var0) => { return new Ok(var0); };
···33expression: "import gleam\npub fn main() { gleam.Error(1) }"
4455---
66-import * as $gleam from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
7788export function main() {
99 return new $gleam.Error(1);
···33expression: "import gleam\npub fn main() { gleam.Ok(1) }"
4455---
66-import * as $gleam from "../gleam.js";
66+import * as $gleam from "../gleam.mjs";
7788export function main() {
99 return new $gleam.Ok(1);
···33expression: "\nfn go() {\n todo(\"I should do this\")\n};\n"
4455---
66-import { throwError } from "../gleam.js";
66+import { throwError } from "../gleam.mjs";
7788function go() {
99 throwError("todo", "my/mod", 3, "go", "I should do this", {});
···33expression: "pub fn main(x) {\n let y = {\n try z = x\n Ok(z + 1)\n }\n y\n}"
4455---
66-import { Ok } from "../gleam.js";
66+import { Ok } from "../gleam.mjs";
7788export function main(x) {
99 let y = (() => {
···33expression: "pub fn main(x) {\n try x = x\n try x = x\n Ok(x)\n}"
4455---
66-import { Ok } from "../gleam.js";
66+import { Ok } from "../gleam.mjs";
7788export function main(x) {
99 if (!x.isOk()) return x;
···33expression: "pub fn main(x) {\n try y = x\n try z = y\n Ok(z)\n}"
4455---
66-import { Ok } from "../gleam.js";
66+import { Ok } from "../gleam.mjs";
7788export function main(x) {
99 if (!x.isOk()) return x;