We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import.meta.url
1 parent ea9aed7 commit 3bf3a8aCopy full SHA for 3bf3a8a
packages/vite/rolldown.config.ts
@@ -344,7 +344,7 @@ function buildTimeImportMetaUrlPlugin(): Plugin {
344
for (const { t, ss, se } of imports) {
345
if (t === 3 && code.slice(se, se + 4) === '.url') {
346
// ignore import.meta.url with /** #__KEEP__ */ comment
347
- if (keepCommentRE.test(code.slice(0, se))) {
+ if (keepCommentRE.test(code.slice(0, ss))) {
348
keepCommentRE.lastIndex = 0
349
continue
350
}
0 commit comments