babel / babel/minify

Add strict option to babel-plugin-transform-inline-environment-variables

Open
#1,051 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

The plugin already supports the `include` option, which will only transform the mentioned items.
To enforce, that no one tries to use names not specified in `include` I suggest to use a new option `strict` which throws an error if a name not specified in the `include` option is found.

Contributor guide

Open the contributing guide

Research direction

Start by locating babel-plugin-transform-inline-environment-variables and its handling of the include option. Add coverage for strict behavior: names absent from include should raise an error, while names listed in include should continue to transform normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.