Skip to content

Instantly share code, notes, and snippets.

@YurkaninRyan
Created October 11, 2017 14:14
Show Gist options
  • Save YurkaninRyan/47117f1755ee62b425bdd7b847e42c1c to your computer and use it in GitHub Desktop.
Save YurkaninRyan/47117f1755ee62b425bdd7b847e42c1c to your computer and use it in GitHub Desktop.
import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import builtins from 'rollup-plugin-node-builtins';
import globals from 'rollup-plugin-node-globals';
export default {
name: 'GuruSlateTools',
input: 'src/index.js',
output: {
format: 'iife',
file: 'dist/bundle.js',
},
sourcemap: true,
plugins: [
resolve({ jsnext: true, builtins: false }),
commonjs({
include: 'node_modules/**',
}),
builtins(),
globals(),
babel({ exclude: 'node_modules/**' }),
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment