Skip to content

Introduce treeshakableimport.meta build flags #21862

@pi0

Description

@pi0

Describe the feature

Nuxt provides process. flags such as process.static that allow writing tree-shakable conditional logic. Nitro recently introduced both that and identical flags for import.meta. which is more runtime agnostic namespace. (nitrojs/nitro#1331).

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions