mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add unistyles
This commit is contained in:
20
apps/cli/templates/frontend/native/unistyles/babel.config.js
Normal file
20
apps/cli/templates/frontend/native/unistyles/babel.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = function (api) {
|
||||
api.cache(true);
|
||||
const plugins = [];
|
||||
|
||||
plugins.push([
|
||||
'react-native-unistyles/plugin',
|
||||
{
|
||||
autoProcessRoot: 'app',
|
||||
autoProcessImports: ['@/components'],
|
||||
},
|
||||
]);
|
||||
|
||||
plugins.push('react-native-reanimated/plugin');
|
||||
|
||||
return {
|
||||
presets: ['babel-preset-expo'],
|
||||
|
||||
plugins,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user