Skip to content

v1.3.0: Adds the option to inline generated code

Latest
Compare
Choose a tag to compare
@Smona Smona released this 22 Jul 03:30
v1.3.0
717d22c

Rather than emitting separate files for each WASM module and AudioProcessor, you can now enable inline mode to embed the content of those files into the JavaScript bundle as base64 data URLs. This means using faust-loader no longer requires a web server in your project to work, and now supports single-file builds. Code splitting is still supported with inline mode via dynamic imports.

The default behavior remains unchanged. To enable inline mode, add inline: true to your loader options for faust-loader. Inline mode will likely become the default in a future major version.