Skip to content

Instantly share code, notes, and snippets.

@TehShrike
Created February 17, 2016 00:05
Show Gist options
  • Save TehShrike/136aa7cbfbdbd7145810 to your computer and use it in GitHub Desktop.
Save TehShrike/136aa7cbfbdbd7145810 to your computer and use it in GitHub Desktop.
rollup.config.js
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import includePaths from 'rollup-plugin-includepaths'
import string from 'rollup-plugin-string'
export default {
globals: {
querystring: 'querystring',
events: 'events',
stream: 'stream-browserify',
util: 'util'
},
plugins: [
string({
extensions: [ '.html' ]
}),
includePaths({
paths: [ 'client/common' ]
}),
nodeResolve({
jsnext: true,
main: true,
browser: true
}),
commonjs({
include: 'node_modules/**',
exclude: [ ]
}),
babel()
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment