Skip to content

Instantly share code, notes, and snippets.

View javimosch's full-sized avatar
🏠
Working from home

Javier Leandro Arancibia javimosch

🏠
Working from home
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.