-
Notifications
You must be signed in to change notification settings - Fork 422
/
rollup-tests.config.js
31 lines (29 loc) · 881 Bytes
/
rollup-tests.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
export default {
input: 'build/scripts/test-inputs.js', // Input file generated by gulp task
output: {
file: 'build/scripts/tests.bundle.js',
format: 'es',
sourcemap: true,
},
treeshake: false,
plugins: [
nodeResolve({
browser: true,
// Disallow use of browser polyfills for Node builtin modules. We're
// trying to avoid dependencies which rely on these.
//
// There are a couple of references to Node builtins that are stubbed by
// configuration for the `virtual` plugin above.
preferBuiltins: false,
}),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
plugins: ['mockable-imports'],
}),
],
};