UNPKG

@rnv/engine-rn-tvos

Version:

ReNative Engine to build react-native tvos platform.

24 lines 1.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withRNVBabel = void 0; var tslib_1 = require("tslib"); var adapter_1 = require("@rnv/adapter"); var withRNVBabel = function (cnf) { var plugins = (cnf === null || cnf === void 0 ? void 0 : cnf.plugins) || []; return tslib_1.__assign(tslib_1.__assign({ retainLines: true, presets: ['module:@react-native/babel-preset'] }, cnf), { plugins: tslib_1.__spreadArray([ (0, adapter_1.withBabelPluginModuleResolver)({ alias: { 'react-native': 'react-native-tvos', // '^react-native/(.+)': 'react-native-tvos/\\1', 'react-native/Libraries/Utilities/codegenNativeComponent': 'react-native-tvos/Libraries/Utilities/codegenNativeComponent', 'react-native/Libraries/Types/CodegenTypes': 'react-native-tvos/Libraries/Types/CodegenTypes', 'react-native/Libraries/Components/ScrollView/ScrollView': 'react-native-tvos/Libraries/Components/ScrollView/ScrollView', 'react-native/Libraries/StyleSheet/flattenStyle': 'react-native-tvos/Libraries/StyleSheet/flattenStyle', 'react-native/Libraries/Pressability/PressabilityDebug': 'react-native-tvos/Libraries/StyleSheet/flattenStyle', 'react-native/Libraries/Pressability/Pressability': 'react-native-tvos/Libraries/StyleSheet/flattenStyle', }, }) ], plugins, true) }); }; exports.withRNVBabel = withRNVBabel; //# sourceMappingURL=babelAdapter.js.map