Example rollup.js
library.
npm install @jaebradley/example-rollup-library
Since this is an example library, there are three exported methods; a
, b
, and c
. All they do is console.log
"a"
, "b"
, and "c"
, respectively.
import {
a,
b,
c,
} from '@jaebradley/example-rollup-library';
a(); // console logs "a"
b(); // console logs "b"
c(); // you bet
Can also import like
import a from '@jaebradley/example-rollup-library/a';
import b from '@jaebradley/example-rollup-library/b';
import c from '@jaebradley/example-rollup-library/c';
a();
b();
c();