mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-14 17:59:08 +08:00
22 lines
434 B
JavaScript
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;
|
|
};
|