Created
February 17, 2016 00:05
-
-
Save TehShrike/136aa7cbfbdbd7145810 to your computer and use it in GitHub Desktop.
rollup.config.js
This file contains hidden or 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 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