Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sourcemaps from 'rollup-plugin-sourcemaps';
- import resolve from 'rollup-plugin-node-resolve';
- import builtins from 'rollup-plugin-node-builtins';
- import globals from 'rollup-plugin-node-globals';
- import commonjs from 'rollup-plugin-commonjs';
- import json from 'rollup-plugin-json';
- export default {
- cache: null,
- external: [
- 'aws-sdk',
- 'amazon-cognito-identity-id',
- ],
- globals: {
- 'aws-sdk': 'AWS',
- },
- paths: {
- 'aws-sdk': 'node_modules/aws-sdk-js/dist/aws-sdk.js',
- // eslint-disable-next-line max-len
- 'amazon-cognito-identity-id': 'node_modules/amazon-cognito-identity-id/dist/amazon-cognito-identity-id.js',
- },
- input: 'src/eve-redux/eve-redux-store.js',
- output: {
- file: 'src/bundle.js',
- name: 'EVE',
- format: 'iife',
- },
- watch: {
- include: 'src/**/*.js',
- exclude: 'src/**/*.html',
- },
- plugins: [
- commonjs({
- ignoreGlobal: true,
- namedExports: {
- 'node_modules/inferno-redux/index.js': ['Provider'],
- 'node_modules/aws-sdk/global.js': ['util'],
- },
- }),
- globals(),
- builtins(),
- resolve({
- preferBuiltins: true,
- }),
- sourcemaps(),
- json(),
- ],
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement