UNPKG

@expo/metro-config

Version:

A Metro config for running React Native projects with the Metro bundler

12 lines 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPosixPath = toPosixPath; const node_process_1 = require("node:process"); const REGEXP_REPLACE_SLASHES = /\\/g; /** * Convert any platform-specific path to a POSIX path. */ function toPosixPath(filePath) { return node_process_1.platform === 'win32' ? filePath.replace(REGEXP_REPLACE_SLASHES, '/') : filePath; } //# sourceMappingURL=filePath.js.map