Written by Dessert • Published 26 Nov. 2020 • Documentation
First, install the Command Line Tool, it will greatly simplify the process.
It is necessary to define what library used in your app can be replaced by a Dessert module. To do so, to methods exist :
recommendcommand from the Dessert CLI
recommend command will run through your project's dependencies and
check for each of them if an existing Dessert equivalent exists, then display
a list of modules likely to interest you. You can then install these modules
if you want, or pick the one you are interested in.
It's recommended to first check a module's documentation before installing it because some details on installation or usage may vary.
Then, install the Dessert module :
npm install <module_name>
Next, you have to replace in your code the occurrences where you use the replaced library (the one you are replacing for a Dessert module).
Eventually, remove it. For example:
npm remove <old_library>
If everything went well, your app just gained performance !
⚠️ Dessert (and more generally WASM modules) use asynchronous
Here is what importing a module looks like:
let myModule; myModule = await import('some-dessert-module')