UNPKG

510 BJavaScriptView Raw
1
2module.exports = {
3 entry: './dist/test/testing-source.js',
4
5 node: {
6 fs: 'empty'
7 },
8
9 output: {
10 path: __dirname + '/webapp/tests',
11 filename: 'testing-bundle.js',
12 libraryTarget: 'var',
13 library: 'WPCOMTesting'
14 },
15
16 module: {
17 loaders: [
18 {
19 test: /\.js$/,
20 exclude: /node_modules/,
21 loader: 'babel-loader'
22 },
23 {
24 test: /\.json$/,
25 exclude: /node_modules/,
26 loader: 'json-loader'
27 }
28 ]
29 },
30
31 resolve: {
32 extensions: [ '', '.js', '.json' ]
33 },
34
35 devtool: 'sourcemap'
36};