Skip to content

A way to detect modern/legacy build #2921

Closed
@Djaler

Description

@Djaler

What problem does this feature solve?

I use css variables in my application. But they are not supported in old browsers. Because of this I need to use css-vars-ponyfill. But call to this library is necessary only in old browsers. And because of this I need a way to detect modern/legacy build to include this code only in legacy build.

What does the proposed API look like?

I think, information about current build type could be accessed via process.env variable.
For example: process.env.IS_MODERN_BUILD

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions