Home | History | Annotate | Download | only in ui
      1 import commonjs from 'rollup-plugin-commonjs';
      2 import nodeResolve from 'rollup-plugin-node-resolve';
      3 
      4 export default {
      5   output: {name: 'perfetto'},
      6   plugins: [
      7     nodeResolve({module: false, browser: true}),
      8 
      9     // emscripten conditionally executes require('fs') (likewise for others),
     10     // when running under node. Rollup can't find those libraries so expects
     11     // these to be present in the global scope, which then fails at runtime.
     12     // To avoid this we ignore require('fs') and the like.
     13     commonjs({
     14       ignore: [
     15         'fs',
     16         'path',
     17         'crypto',
     18       ]
     19     }),
     20   ]
     21 }
     22