Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const { getDefaultConfig } = require("expo/metro-config");
|
||||
const { withNativeWind } = require('nativewind/metro');
|
||||
const path = require('node:path');
|
||||
|
||||
const config = getDefaultConfig(__dirname)
|
||||
|
||||
const ALIASES = {
|
||||
tslib: path.resolve(__dirname, "node_modules/tslib/tslib.es6.js"),
|
||||
};
|
||||
|
||||
config.resolver.resolveRequest = (context, moduleName, platform) => {
|
||||
return context.resolveRequest(
|
||||
context,
|
||||
ALIASES[moduleName] ?? moduleName,
|
||||
platform
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = withNativeWind(config, { input: './global.css' })
|
||||
Reference in New Issue
Block a user