Skip to content

transformer(define): import.meta.foo.bar matches and replaces import.meta.bar #16623

@sapphi-red

Description

@sapphi-red
console.log(import.meta.bar)

is transformed to

console.log(34)

when define: { 'import.meta.foo.bar': '34' } is set. But this should not happen.

Reproduction: https://stackblitz.com/edit/github-xv4yss-hmr4oabe?file=build.mjs

Metadata

Metadata

Assignees

Labels

A-transformerArea - Transformer / Transpiler

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions