Skip to content

Instantly share code, notes, and snippets.

@shannonmoeller
Last active April 18, 2017 13:27
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 shannonmoeller/f7f80a4da3e034518cb5524d3ec0e056 to your computer and use it in GitHub Desktop.
Save shannonmoeller/f7f80a4da3e034518cb5524d3ec0e056 to your computer and use it in GitHub Desktop.
Rollup code-splitting inputs.
import { foo } from './foo';
import { bar } from './bar';
export function a() {
return foo() + bar();
}
import { foo } from './foo';
import { baz } from './baz';
export function b() {
return foo() + baz();
}
export function bar() {
return 'bar';
}
export function baz() {
return 'baz';
}
export function foo() {
return 'foo';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment