UNPKG

vite-typescript-plugin

Version:

A Vite plugin for seamless integration between Vite and Typescript.

14 lines (13 loc) 528 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizePath = void 0; const path_1 = __importDefault(require("path")); const win32Sep = path_1.default.win32.sep; const posixSep = path_1.default.posix.sep; const normalizePath = (fileName) => { return fileName.split(win32Sep).join(posixSep); }; exports.normalizePath = normalizePath;