Skip to content

chore: use import.meta.dirname instead of __dirname - #30738

Merged
danieldietzler merged 1 commit into
mainfrom
chore/dirname
Aug 12, 2026
Merged

chore: use import.meta.dirname instead of __dirname#30738
danieldietzler merged 1 commit into
mainfrom
chore/dirname

Conversation

@meesfrensel

Copy link
Copy Markdown
Collaborator

Description

Use import.meta.dirname instead of __dirname and __filename where possible. Got a vite warning about a future incompatibility, so I updated the vite config, and a few other usages.

immich_web               | (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
immich_web               |   - `__dirname` (vite.config.ts:31:34). Use `import.meta.dirname` instead
immich_web               | Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.

@danieldietzler danieldietzler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty :)

@danieldietzler
danieldietzler merged commit 2a16918 into main Aug 12, 2026
70 checks passed
@danieldietzler
danieldietzler deleted the chore/dirname branch August 12, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants