blob: 168f32026410d91f016e851bac1b489b1e40252c [file] [log] [blame]
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
output: {name: 'perfetto'},
plugins: [
nodeResolve({browser: true}),
// emscripten conditionally executes require('fs') and require('path'),
// when running under node, rollup can't find a library named 'fs' or
// 'path' so expects these to be present in the global scope (which fails
// at runtime). To avoid this we ignore require('fs') and require('path').
commonjs({
ignore: [
'fs',
'path',
]
})
]
}