blob: 8c884f1e98a4cfc71a08044fd341d0abd233e6e5 [file] [log] [blame]
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
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',
]
}),
replace({
'immer_1.produce': 'immer_1',
})
]
}