-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
44 lines (40 loc) · 1.19 KB
/
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
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
const path = require("path");
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
// Customize the config before returning it.
console.log(">>>>>> CONFIG", JSON.stringify(config.module, null, 4));
/* return {
...config,
module: {
...config.module,
rules: [
...config.module.rules,
// This would match ui-kitten
{
test: /(@?react-(navigation|native)).*\.(ts|js)x?$/,
include: /node_modules/,
exclude: [/react-native-web/, /\.(native|ios|android)\.(ts|js)x?$/],
loader: "babel-loader",
},
{
test: /@?(rainbow-me|eva-design).*\.(ts|js)x?$/,
loader: "babel-loader",
},
],
},
}; */
/* config.module.rules.forEach((r) => {
if (r.oneOf) {
r.oneOf.forEach((o) => {
if (o.use && o.use.loader && o.use.loader.includes("babel-loader")) {
o.include = [
path.resolve("."),
path.resolve("node_modules/@rainbow-me/animated-charts"),
];
}
});
}
}); */
return config;
};