node-zendesk icon indicating copy to clipboard operation
node-zendesk copied to clipboard

Incompatible with esbuild/bundling tools

Open adenhertog opened this issue 3 years ago • 0 comments

Due to dynamic/runtime requires (client.js:95), tools such as esbuild won't include the runtime libraries when producing a runtime bundle (see also: https://github.com/blakmatrix/node-zendesk/issues/282)

Can these requires be done explicitly in order to work properly with these tools?

eg:

if (options.stores.defaults.store.helpcenter) {
  require('./client/helpcenter/articles')
  require('./client/helpcenter/sections')
  // ...
} else ...

adenhertog avatar Dec 30 '21 07:12 adenhertog