Plugin didn't set a resolve directory for the file

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
nodejs, typescript
Domain
build-system

Research direction

Start by uncommenting the tests marked with test.todo in lib/tests/index.test.ts and run that test file to reproduce the failure. Trace the plugin path exercised by those tests for ignored files that import from node_modules; done means the scenarios complete without build errors.

Written by the indexing model from the issue text.

Description

bug help wanted

Bug Description
When employing ignorePatterns alongside contentPatterns or sourceReplacePatterns, and when the target files import a library from the node_modules, the build process encounters a failure.

Steps to Reproduce
Uncomment the tests marked with test.todo in lib/__tests__/index.test.ts.

Desired Outcome
This scenario should be managed smoothly without generating any errors.

Dominant language
TypeScript
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react18-tools/esbuild-plugin-react18

All issues in react18-tools/esbuild-plugin-react18

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.