Skip to content

Commit

Permalink
feat(config): import.meta.filename/dirname support (#15888)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Mar 12, 2024
1 parent 75a9fc6 commit 3efb1a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ async function bundleConfigFile(
__dirname: dirnameVarName,
__filename: filenameVarName,
'import.meta.url': importMetaUrlVarName,
'import.meta.dirname': dirnameVarName,
'import.meta.filename': filenameVarName,
},
plugins: [
{
Expand Down

0 comments on commit 3efb1a1

Please sign in to comment.