Skip to content

Commit 3efb1a1

Browse files
authored
feat(config): import.meta.filename/dirname support (#15888)
1 parent 75a9fc6 commit 3efb1a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/vite/src/node/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,8 @@ async function bundleConfigFile(
10541054
__dirname: dirnameVarName,
10551055
__filename: filenameVarName,
10561056
'import.meta.url': importMetaUrlVarName,
1057+
'import.meta.dirname': dirnameVarName,
1058+
'import.meta.filename': filenameVarName,
10571059
},
10581060
plugins: [
10591061
{

0 commit comments

Comments
 (0)