aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/export.js
blob: bf334f025f037c0a553895a2770518ee10e30b18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import what from "./_auth";
export { default as auth } from "./_auth";
export { default as login } from "./_login";
export * from "./_bacon";
export let yoyoyo = "yoyoyo";
export default function hey() {
  return true;
}
export const foo = () => {};
export var bar = 100;
export let powerLevel = Symbol("9001");
export { what };
export { what as when, what as whence };
export {} from "./_bacon";
export * as where from "./_auth";
export { bar as booop };

export function test() {
  hey();
  foo();
  if (where.default !== "hi") {
    throw new Error(`_auth import is incorrect.`);
  }
  console.assert(powerLevel.description === "9001", "Symbol is not exported correctly");
  return testDone(import.meta.url);
}
>Gravatar Jarred Sumner 1-2/+12 2022-02-03Update js_ast.zigGravatar Jarred Sumner 1-0/+1 2022-02-03Support loading multiple entry points by changing what `bun:main` points toGravatar Jarred Sumner 6-4/+36 2022-02-03[bun install] Configurable max http retry countGravatar Jarred Sumner 1-0/+7 2022-02-03Missing newline in errors in bun installGravatar Jarred Sumner 1-4/+8 2022-02-03Fix bug with http clientGravatar Jarred Sumner 6-107/+101 2022-02-03Move detectFastRefresh to later so HTTP request handler starts fasterGravatar Jarred Sumner 1-2/+1 2022-02-03Fix bug with macro remaps in Bun.Transpiler apiGravatar Jarred Sumner 2-5/+8 2022-02-03Slight improvement to non-ascii file path handlingGravatar Jarred Sumner 4-18/+79 2022-02-02`path.relative` passes Node's tests (which also fixed bugs)Gravatar Jarred Sumner 8-283/+571