Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3051130
tmp_vite_fs_trace.mjs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
tmp_vite_fs_trace.mjs
View Options
import fs from 'node:fs';
for (const name of ['access', 'readFile', 'readdir', 'realpath', 'rm', 'stat']) {
const original = fs.promises?.[name];
if (typeof original !== 'function') continue;
fs.promises[name] = async function (...args) {
try {
return await original.apply(this, args);
} catch (error) {
console.log(`fs.promises.${name}`, args[0], error?.name, error?.message);
throw error;
}
};
}
process.on('unhandledRejection', (reason) => {
console.log('unhandledRejection', reason?.name, reason?.message);
if (reason?.stack) console.log(reason.stack);
});
const vite = await import('/Users/themackabu/.ant/pkg/exec/vite/node_modules/vite/dist/node/index.js');
const server = await vite.createServer({ configFile: false, root: process.cwd() });
try {
await server.listen();
console.log('listen ok');
} catch (error) {
console.log('listen', error?.name, error?.message);
if (error?.stack) console.log(error.stack);
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Apr 3, 3:00 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
521509
Default Alt Text
tmp_vite_fs_trace.mjs (974 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment