UNPKG

@rnv/engine-rn-next

Version:

ReNative Engine to build next based platforms with react native support.

21 lines 912 B
"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:babel-preset-expo', { // @ts-ignore TODO: this is to supress babel-preset-expo error. this config override does work web: { disableImportExportTransform: false, }, }, ], ] }, cnf), { plugins: tslib_1.__spreadArray([(0, adapter_1.withBabelPluginModuleResolver)()], plugins, true) }); }; exports.withRNVBabel = withRNVBabel; //# sourceMappingURL=babelAdapter.js.map