summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemaps-with-ignorelist/rollup.config.js
blob: 9da39d5be612655b162fa16adfa2a3adfebc08f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export default {
	input: 'src/index.js',
	output: {
		file: 'bundle.js',
		format: 'iife',
    sourcemap: true,
    sourcemapIgnoreList: (relativeSourcePath) => {
      // Adding original-1.js and original-3.js to the ignore list should cause these files to
      // be ignored by the devtools and their debugger statements should not be hit.
      return ['original-1', 'original-3'].some(fileName => relativeSourcePath.includes(fileName));
    },
	},
};