From 10573183af14b4f303909ee9394e0e72cf10b45d Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 31 May 2020 18:48:32 +0100 Subject: fix(std/path): Support browsers (#6003) --- std/path/mod.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/path/mod.ts') diff --git a/std/path/mod.ts b/std/path/mod.ts index 9cb7f1edb..0b4156e69 100644 --- a/std/path/mod.ts +++ b/std/path/mod.ts @@ -1,11 +1,11 @@ // Copyright the Browserify authors. MIT License. // Ported mostly from https://github.com/browserify/path-browserify/ +/** This module is browser compatible. */ +import { isWindows } from "./_constants.ts"; import * as _win32 from "./win32.ts"; import * as _posix from "./posix.ts"; -const isWindows = Deno.build.os == "windows"; - const path = isWindows ? _win32 : _posix; export const win32 = _win32; @@ -29,5 +29,5 @@ export const { export * from "./common.ts"; export { SEP, SEP_PATTERN } from "./separator.ts"; -export * from "./interface.ts"; +export * from "./_interface.ts"; export * from "./glob.ts"; -- cgit v1.2.3