-
Notifications
You must be signed in to change notification settings - Fork 261
☂️ Improve WebPack Support #759
Copy link
Copy link
Labels
area-coreRelated to some core parts of alphaTabRelated to some core parts of alphaTabplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Metadata
Metadata
Assignees
Labels
area-coreRelated to some core parts of alphaTabRelated to some core parts of alphaTabplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
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