Skip to content

import.meta is not transpiled in cjs output #370

@juliusmarminge

Description

@juliusmarminge

Reproduction link or steps

https://stackblitz.com/edit/github-xis34qga?file=src%2Fconfig.ts

(Originally produced in https://socket.dev/npm/package/uploadthing/files/7.7.3/dist/upload-builder-RrqQb3by.cjs#L43)

What is expected?

import.meta usage should be transpiled to undefined in the cjs output

What is actually happening?

the reference is still there:

Image

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions