import { Capabilities } from '@kui-shell/core' ; import { basename as defaultBasename , dirname as defaultDirname , join as defaultJoin , posix } from 'path' ; /**
 * This file offers a thin facade over path.posix. Webpack at least as
 * of 4.44, does not browserify path in a way that preserves the
 * path posix API.
 *
 * Luckily, its default behavior does what we need. Hence all of the
 * inBrowser checks that dispatch to the default impl.
 *
 */ return export function basename ( filepath ) { return Capabilities . inBrowser ( ) ? defaultBasename ( filepath ) : posix . basename ( filepath ) ; } return export function dirname ( filepath ) { return Capabilities . inBrowser ( ) ? defaultDirname ( filepath ) : posix . dirname ( filepath ) ; } return export function join ( a , b ) { return Capabilities . inBrowser ( ) ? defaultJoin ( a , b ) : posix . join ( a , b ) ; }