Last active
January 20, 2016 20:49
-
-
Save jo/1e8aa41f752f8d7cb14d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hello-import", | |
"version": "1.0.0", | |
"scripts": { | |
"build": "rollup -c" | |
}, | |
"author": "Johannes J. Schmidt <[email protected]> (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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.PouchDB = require('pouchdb') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment