Experience-Monks / Experience-Monks/babel-plugin-static-fs

Does not work with __coverage__ or istanbul

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I get this error
```
Error: file.js: Could not statically evaluate how the fs module was required/imported. while parsing file: file.js
```
When trying to use `static-fs` with either [babel-plugin-static-fs](https://www.npmjs.com/package/babel-plugin-static-fs) or [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul)

Contributor guide

Open the contributing guide

Research direction

Reproduce the error from file.js using static-fs with babel-plugin-static-fs and babel-plugin-istanbul. Start by comparing how each plugin processes the fs import or require, then verify that the combined setup no longer reports the static-evaluation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.