replace dirname with a hack that should behave like before
the '@ts-expect-error' is to silence tsc just in case, since this function does in fact exist during bundling. techinically the real solution would be to declare it but /shrug
This commit is contained in:
@@ -21,8 +21,12 @@ import { Size, Rect, Logger } from '@cvmts/shared';
|
||||
import jpegTurbo from "@computernewb/jpeg-turbo";
|
||||
import sharp from 'sharp';
|
||||
|
||||
// probably better
|
||||
const __dirname = process.cwd();
|
||||
// @ts-expect-error (I know, but this is already ugly)
|
||||
// really wish I didn't have to do it like this..
|
||||
const __dirname = fileURLToPath(new __parcel__URL__('..'));
|
||||
|
||||
|
||||
console.log(__dirname);
|
||||
|
||||
// ejla this exist. Useing it.
|
||||
type ChatHistory = {
|
||||
|
||||
Reference in New Issue
Block a user