blob: e3a7e7c85e7f90ca5a113af53af1bec1d3ff4d2e [file] [log] [blame]
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
output: {
name: 'perfetto'
},
plugins: [
nodeResolve(),
// 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'
]
})
]
}