Skip to content

minifier: import.meta.url getter sideeffect is removed #19466

@sapphi-red

Description

@sapphi-red
Object.defineProperty(import.meta, 'url', {
  get() {
    console.log('import.meta.url')
    return 'virtual:'
  }
})
import.meta.url

playground

Found while checking #19308

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions