forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.lambda.js
More file actions
29 lines (29 loc) · 728 Bytes
/
webpack.lambda.js
File metadata and controls
29 lines (29 loc) · 728 Bytes
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
// Expose a custom webpack config in order to let netlify-lambda read it and
// build the TS lambda functions. This way, netlify-lambda use the same
// babel config that Gatsby does.
module.exports = {
module: {
rules: [
{
test: /\.(m?js|ts)?$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: "babel-loader",
options: {
presets: [
"@babel/preset-typescript",
[
"babel-preset-gatsby",
{
targets: {
browsers: [">0.25%", "not dead"],
},
},
],
],
},
},
},
],
},
}