mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
8 lines
319 B
TypeScript
8 lines
319 B
TypeScript
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/deps/path/separator.ts
|
|
|
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
const isWindows = Deno.build.os == "windows";
|
|
export const SEP = isWindows ? "\\" : "/";
|
|
export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
|