Files
nativewind/examples/expo/webpack.config.js
2022-08-22 12:35:36 +10:00

22 lines
434 B
JavaScript

const path = require("path");
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(
{
...env,
babel: {
dangerouslyAddModulePathsToTranspile: ["nativewind"],
},
},
argv
);
config.module.rules.push({
test: /\.css$/i,
use: ["postcss-loader"],
});
return config;
};