title: How can I add dependencies to an ionic 2 app using rollup.js
body: <p>I noticed ionic2 is using rollup.js as their module bundler. It seems pretty straight forward except I'm a little lost in how it fits in with ionic2 projects. Ionic's only mention of this change is <a href="https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#200-rc0-2016-09-28" rel="nofollow noreferrer">here</a> in their CHANGELOG.</p>
  
  <p>After looking over the <a href="http://rollupjs.org/guide/#using-rollup-with-babel" rel="nofollow noreferrer">rollup.js</a> docs they show how to <a href="http://rollupjs.org/guide/#using-rollup-with-babel" rel="nofollow noreferrer">import rollup modules</a> 
  and for <code>npm</code> projects they are the task runner for the app itself where you'd add</p>
  
  <pre><code>"scripts": {
      "build": "rollup src/main.js --output bundle.js"
  }
  </code></pre>
  
  <p>to the <code>package.json</code> and run <code>npm build</code> to create your bundle.</p>
  
  <p>So I'm still not really sure how this works with Ionic because I noticed the <code>rollup.config.js</code> file is in the <code>node_modules</code> folder (full path <code>node_modules/@ionic/app-scripts/config/rollup.config.js</code>) and it feels pretty unnatural making any changes to anything in the <code>node_modules</code> folder as you'd lose your rollup config everytime you rebuild your <code>node_modules</code> or pull/clone from git. </p>
  
  <p>So how add third party modules to your rolllup bundle?</p>