You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a sample that demonstrate how to add support for using the Buffer class from sandboxed code, by loading an appropriate polyfill through a custom Webpack configuration.
Context
Some users have expressed their need for using the Buffer class in code that runs inside the Workflow sandbox. After discussion, however, our team has determined that it's preferable not to provide out-of-the-box support for that module, since that goes against some of our mid-term and long-term objectives, notably regarding the possibly of supporting other JavaScript runtimes (eg. Deno, browser, etc). Users may easily work around missing APIs by loading appropriate polyfills from their Webpack bundler.
The text was updated successfully, but these errors were encountered:
Hi, just want to bump this. Using Buffer to decode base64 is quite common. An example for how to enable Buffer would be very helpful for people who is not familiar with webpack.
Describe the solution you'd like
Add a sample that demonstrate how to add support for using the
Buffer
class from sandboxed code, by loading an appropriate polyfill through a custom Webpack configuration.Context
Some users have expressed their need for using the
Buffer
class in code that runs inside the Workflow sandbox. After discussion, however, our team has determined that it's preferable not to provide out-of-the-box support for that module, since that goes against some of our mid-term and long-term objectives, notably regarding the possibly of supporting other JavaScript runtimes (eg. Deno, browser, etc). Users may easily work around missing APIs by loading appropriate polyfills from their Webpack bundler.The text was updated successfully, but these errors were encountered: