Add bufferPath to config, support bufferPath symlink (#27)

* Add bufferPath to config, support bufferPath symlink

* defaultPath before checking realpath

* Move code for retrieving buffer path into its own file

* Do the realpathSync() call for the whole final file path, to allow the buffer file to be a symlink

---------

Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
This commit is contained in:
Joshua Blum
2023-12-23 05:17:13 -05:00
committed by GitHub
parent d1ea17c197
commit f532c7939b
4 changed files with 32 additions and 7 deletions

View File

@ -1,6 +1,7 @@
const os = require('os');
export const isDev = !!process.env.VITE_DEV_SERVER_URL
export const isMac = os.platform() === "darwin";
export const isWindows = os.platform() === "win32";
export const isLinux = os.platform() === "linux";