Skip to content

Instantly share code, notes, and snippets.

View fimars's full-sized avatar
🍥

fimars

🍥
View GitHub Profile

Hi!

This is an example of how to use [Rollup] with external dependencies, without hard-coding them.

It reads your installed NPM dependencies and treats them as external to Rollup. They still get bundled, but not as ES2015.

Make sure you have a .babelrc or a "babel":{} section in your package.json.

update