mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 05:36:17 +00:00
Init using create-nitro-module
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
const path = require('path');
|
||||
const pak = require('../package.json');
|
||||
|
||||
module.exports = api => {
|
||||
api.cache(true);
|
||||
return {
|
||||
presets: ['module:@react-native/babel-preset'],
|
||||
plugins: [
|
||||
[
|
||||
'module-resolver',
|
||||
{
|
||||
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
|
||||
alias: {
|
||||
[pak.name]: path.join(__dirname, '../', pak.source),
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user