-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
44 lines (41 loc) · 952 Bytes
/
webpack.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
var path = require('path');
var fs = require('fs');
function resolve(filePath) {
return path.resolve(__dirname, filePath)
}
var babelOptions = {
"presets": [
[resolve("./node_modules/babel-preset-es2015"), {"modules": false}]
]
}
module.exports = {
entry: resolve('./tests/Fable.Aether.Tests.fsproj'),
output: {
filename: 'tests.bundle.js',
path: resolve('./build'),
},
target: "node",
module: {
rules: [
{
test: /\.fs(x|proj)?$/,
use: {
loader: "fable-loader",
options: {
fableCore: resolve("./packages/Fable.Core/fable-core"),
plugins: resolve("./node_modules/fable-plugins-nunit/Fable.Plugins.NUnit.dll"),
babel: babelOptions
}
}
},
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: babelOptions
},
}
]
},
};