forked from petyosi/react-virtuoso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__setup.js
17 lines (15 loc) · 984 Bytes
/
__setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const Bundler = require('parcel-bundler')
module.exports = async function() {
await import('./test-cases.mjs')
// Bundler options
const options = {
watch: false, // Whether to watch the files and rebuild them on change, defaults to process.env.NODE_ENV !== 'production'
logLevel: 0, // 5 = save everything to a file, 4 = like 3, but with timestamps and additionally log http requests to dev server, 3 = log info, warnings & errors, 2 = log warnings & errors, 1 = log errors, 0 = log nothing
hmr: false, // Enable or disable HMR while watching
sourceMaps: false, // Enable or disable sourcemaps, defaults to enabled (minified builds currently always create sourcemaps)
autoInstall: false, // Enable or disable auto install of missing dependencies found during bundling
}
// Initializes a bundler using the entrypoint location and options provided
const bundler = new Bundler('./e2e/__examples.html', options)
global.server = await bundler.serve()
}