Skip to content

Instantly share code, notes, and snippets.

@jo
Last active January 20, 2016 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jo/1e8aa41f752f8d7cb14d to your computer and use it in GitHub Desktop.
Save jo/1e8aa41f752f8d7cb14d to your computer and use it in GitHub Desktop.
{
"name": "hello-import",
"version": "1.0.0",
"scripts": {
"build": "rollup -c"
},
"author": "Johannes J. Schmidt <jo@die-tf.de> (http://die-tf.de/)",
"license": "Apache-2.0",
"devDependencies": {
"events": "^1.1.0",
"pouchdb": "^5.2.0",
"process": "^0.11.2",
"rollup": "^0.25.0",
"rollup-plugin-commonjs": "^2.2.0",
"rollup-plugin-npm": "^1.3.0"
}
}
import npm from 'rollup-plugin-npm'
import commonjs from 'rollup-plugin-commonjs'
export default {
entry: 'src/modules/index.js',
format: 'iife',
moduleName: 'modules',
plugins: [
npm({
browser: true
}),
commonjs()
],
dest: 'lib/modules.js'
}
exports.PouchDB = require('pouchdb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment