Created
March 16, 2018 10:51
-
-
Save shivam-tripathi/164241cb5d4a2d17e3ebd256191398ae 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
import babel from 'rollup-plugin-babel'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import shiftHeader from 'rollup-plugin-shift-header'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
export default { | |
input: 'src/bookdepository/bookdepository.js', | |
output: { | |
file: 'lib/bookdepository.user.js', | |
format: 'cjs', | |
}, | |
external: [ | |
'react', | |
'prop-types', | |
], | |
plugins: [ | |
shiftHeader(), | |
babel({ | |
exclude: 'node_modules/**' | |
}), | |
commonjs(), | |
resolve(), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment