UNPKG

storybook-addon-source-link

Version:

Add a button to the Storybook toolbar that opens the file containing the Story in an IDE like VSCode.

7 lines (5 loc) 303 B
import { join, parse, normalize } from '@std/path/posix'; var s=(r,e)=>new URL(`file:///${join(r,e)}`),p=(...r)=>join(...r),a=r=>parse(r),g=r=>normalize(r); export { s as getFileUrl, p as joinPath, g as normalizePath, a as parsePath }; //# sourceMappingURL=out.js.map //# sourceMappingURL=index.js.map