See https://rollupjs.org/ to get started.
Also, this warning when used with TS:
If you are using TypeScript, we recommend you explicitly list the @types packages you want to use using the types property in the "tsconfig.json" file, or set it to []. Rollup has a dependency on @types/node, which means (without this change) these types will automatically be available in your app even when some of them should not be available based on the target you are using.