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

Enable WebAssembly #26

Open
akrivka opened this issue Jan 4, 2022 · 0 comments
Open

Enable WebAssembly #26

akrivka opened this issue Jan 4, 2022 · 0 comments

Comments

@akrivka
Copy link

akrivka commented Jan 4, 2022

It'd be great if we could import WebAssembly files in Airtable Apps by default.

Currently, there's no way of overwriting the Webpack config that the block CLI uses, and WebAssembly imports need to be enabled by setting the asyncWebAssembly and syncWebAssembly experimental flags to true (see here https://webpack.js.org/configuration/experiments/). One could build a custom bundler, but that is currently a lot of work and mostly doesn't work.

The changes to do this are minimal, probably just need to add the lines

experiments: {
    asyncWebAssembly: true,
    syncWebAssembly: true,
  },
};

to the createWebpackCompilerConfig function in this file: https://github.com/Airtable/blocks/blob/master/packages/cli-next/src/bundler/webpack_config.ts. I can put up a pull request, but my guess is that this needs to be looked over carefully by and Airtable engineer anyway...

P.S.: The use case I have is running a high-speed cohort-matching algorithm for a large-scale cohort-based virtual program.

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

No branches or pull requests

1 participant