forked from rangle/augury
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.test.config.js
47 lines (42 loc) · 988 Bytes
/
webpack.test.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: {
'test': [
'rxjs',
'zone.js/lib/browser/zone-microtask',
'zone.js/lib/zones/long-stack-trace',
'reflect-metadata',
path.join(__dirname, 'webpack.test.bootstrap.ts')
]
},
output: {
path: path.join(__dirname, './build'),
filename: '[name].js'
},
module: {
loaders: [{
// Support for .ts files.
test: /\.ts$/,
loader: 'ts',
query: {
'ignoreDiagnostics': [
2403, // 2403 -> Subsequent variable declarations
2300, // 2300 -> Duplicate identifier
2374, // 2374 -> Duplicate number index signature
2375 // 2375 -> Duplicate string index signature
]
},
exclude: [
/node_modules/
]
}]
},
resolve: {
extensions: ['', '.ts', '.js', '.jsx'],
modulesDirectories: ['src', 'node_modules']
},
node: {
fs: 'empty'
}
};