☂️ Improve WebPack Support #759
Labels
area-core
Related to some core parts of alphaTab
platform-javascript
Related to the JavaScript version of alphaTab
state-accepted
This is a valid topic to work on.
Background
Supporting alphaTab in environments where it is bundled together with other libraries always has been a bit of a pain as alphaTab spawns WebWorkers and AudioWorklets using the script file it is contained in.
But bundlers like WebPack reorganize the code quite significantly and also often come with an own dependency management system which replaces the default import/script include system from browsers.
Related issues to bundling
Goal of this issue
The goal of this issue to add official support for WebPack 5 (WebPack 4 is considered out of scope). There have been already discussions ongoing how this can be solved and improved with WebPack.
State: Solution identified and improvements in progress
Related discussion: How to integrate own library with WebPack which needs to span WebWorkers and AudioWorklets webpack/webpack#15382
State: Discussing built-in inline worker support in WebPack, evaluating custom plugin as intermediate solution.
Related discussion: Inline worker in webpack 5 webpack/webpack#14066
State: Discussing built-in AudioWorklet support in WebPack, evaluating custom plugin as intermediate solution.
Related discussion: support worklet webpack/webpack#11543
The text was updated successfully, but these errors were encountered: