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.

12 lines (9 loc) 342 B
'use strict'; var posix = require('@std/path/posix'); var s=(r,e)=>new URL(`file:///${posix.join(r,e)}`),p=(...r)=>posix.join(...r),a=r=>posix.parse(r),g=r=>posix.normalize(r); exports.getFileUrl = s; exports.joinPath = p; exports.normalizePath = g; exports.parsePath = a; //# sourceMappingURL=out.js.map //# sourceMappingURL=index.cjs.map