Skip to content

Conversation

doktor500
Copy link
Contributor

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests (Refactor that doesn't change behaviour)
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

Given a project that uses esbuild as a build tool, this warning is prompt when the @sentry/node dependency is added to the project, This PR removes the warning.

Compiling with esbuild...
 > node_modules/@sentry/node/dist/integrations/modules.js: warning: Indirect calls to "require" will not be bundled (surround with a try/catch to silence this warning)
    9 │     var paths = require.cache ? Object.keys(require.cache) : [];~~~~~~~

@doktor500 doktor500 changed the title Fix esbuild warning dynamic require Fix esbuild warning dynamic/indirect calls to require Jan 11, 2021
@kamilogorek kamilogorek merged commit 80aca67 into getsentry:master Jan 12, 2021
@kamilogorek
Copy link
Contributor

Thanks!

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.

2 participants