Skip to content

Instantly share code, notes, and snippets.

@shivam-tripathi
Created March 16, 2018 10:51
Show Gist options
  • Save shivam-tripathi/164241cb5d4a2d17e3ebd256191398ae to your computer and use it in GitHub Desktop.
Save shivam-tripathi/164241cb5d4a2d17e3ebd256191398ae to your computer and use it in GitHub Desktop.
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