Skip to content

Instantly share code, notes, and snippets.

@jhnns
Last active May 23, 2017 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhnns/0dd2ecaba7771c2ad955b2f92de9e76d to your computer and use it in GitHub Desktop.
Save jhnns/0dd2ecaba7771c2ad955b2f92de9e76d to your computer and use it in GitHub Desktop.
Bundle example
export let number = 42;
export function incr() {
number++;
}
import { number } from "./a";
console.log(number);
@0xR
Copy link

0xR commented May 23, 2017

I'm pretty sure you can only export a const. Let would make it too dynamic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment