Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add sample for using Buffer polyfills #280

Open
mjameswh opened this issue Jul 18, 2023 · 1 comment
Open

[Feature Request] Add sample for using Buffer polyfills #280

mjameswh opened this issue Jul 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mjameswh
Copy link
Contributor

mjameswh commented Jul 18, 2023

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.

@cirias
Copy link

cirias commented Mar 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants