Skip to content

Conversation

@pokey
Copy link
Member

@pokey pokey commented Jul 15, 2024

Not totally sure what it's about but this fix makes the warnings go away and doesn't break anything

▲ [WARNING] "./reporters/parallel-buffered" should be marked as external for use with "require.resolve" [require-resolve-not-external]

    ../../node_modules/.pnpm/mocha@10.3.0/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js:19:2:
      19 │   './reporters/parallel-buffered'
         ╵   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

▲ [WARNING] "./worker.js" should be marked as external for use with "require.resolve" [require-resolve-not-external]

    ../../node_modules/.pnpm/mocha@10.3.0/node_modules/mocha/lib/nodejs/buffered-worker-pool.js:16:36:
      16 │ const WORKER_PATH = require.resolve('./worker.js');
         ╵                                     ~~~~~~~~~~~~~

Checklist

  • [-] I have added tests
  • [-] I have updated the docs and cheatsheet
  • [-] I have not broken the cheatsheet

…kes the warnings go away and doesn't break anything

```
▲ [WARNING] "./reporters/parallel-buffered" should be marked as external for use with "require.resolve" [require-resolve-not-external]

    ../../node_modules/.pnpm/mocha@10.3.0/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js:19:2:
      19 │   './reporters/parallel-buffered'
         ╵   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

▲ [WARNING] "./worker.js" should be marked as external for use with "require.resolve" [require-resolve-not-external]

    ../../node_modules/.pnpm/mocha@10.3.0/node_modules/mocha/lib/nodejs/buffered-worker-pool.js:16:36:
      16 │ const WORKER_PATH = require.resolve('./worker.js');
         ╵                                     ~~~~~~~~~~~~~
```
@pokey pokey requested a review from AndreasArvidsson as a code owner July 15, 2024 12:24
@pokey pokey changed the title Fix esbuild warning. Not totally sure what it's about but this fix makes the warnings go away and doesn't break anything Fix esbuild warning Jul 15, 2024
@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit edfdec7 Jul 15, 2024
@AndreasArvidsson AndreasArvidsson deleted the pokey/fix-esbuild-warning-not-totally-sure-what-its-about-but-this-fix-makes-the-warnings-go-away-and-doesnt-break-anything branch July 15, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants