Initialize the WOFF2 module with WASM
masterThe woff2 module requires initialization to load its WebAssembly binary. You must provide the path to the .wasm file.
Important: You must copy the woff2.wasm file from node_modules/fonteditor-core/woff2/ to your project's public assets folder so it is accessible at runtime.
import { woff2 } from 'fonteditor-core';
// In browser environments
await woff2.init('/path/to/woff2.wasm');