UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

10 lines (9 loc) 394 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeId = normalizeId; const utils_js_1 = require("../utils.js"); // In principle Vite/Rollup should always normalize the `id` in `transform(code, id)` but it seems to not always do it. // https://github.com/vikejs/vike/issues/1935 function normalizeId(id) { return (0, utils_js_1.toPosixPath)(id); }