Advertisement
bennyp

Untitled

Oct 26th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sourcemaps from 'rollup-plugin-sourcemaps';
  2. import resolve from 'rollup-plugin-node-resolve';
  3. import builtins from 'rollup-plugin-node-builtins';
  4. import globals from 'rollup-plugin-node-globals';
  5. import commonjs from 'rollup-plugin-commonjs';
  6. import json from 'rollup-plugin-json';
  7.  
  8. export default {
  9.  
  10.   external: ['aws-sdk'],
  11.  
  12.   input: 'src/eve-redux/eve-redux-store.js',
  13.  
  14.   output: {
  15.     file: 'src/bundle.js',
  16.     name: 'EVE',
  17.     format: 'iife',
  18.   },
  19.  
  20.   watch: {
  21.     include: 'src/**',
  22.   },
  23.  
  24.   plugins: [
  25.     resolve({preferBuiltins: true}),
  26.     commonjs({
  27.       include: 'node_modules/**',
  28.       ignoreGlobal: true,
  29.       namedExports: {
  30.         'node_modules/inferno-redux/index.js': ['Provider'],
  31.         'node_modules/aws-sdk/global.js': ['util'],
  32.       },
  33.     }),
  34.     sourcemaps(),
  35.     json(),
  36.     builtins(),
  37.     globals(),
  38.   ],
  39.  
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement