open-index/open-npm huggingface dataset:
npm package: @sparklapse/dots-react
Description: The react glue for using dots.
Latest version: 1.2.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# dots-react

The react glue for using dots.

# Known issues

## Next/Webpack

https://github.com/vercel/next.js/issues/44273

The following was required in `next.config.js` to prevent import errors:

```js
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
  config.externals.push({
    "utf-8-validate": "commonjs utf-8-validate",
    bufferutil: "commonjs bufferutil",
    encoding: "commonjs encoding",
  });
  return config;
},
```

If you're using `dots-rp` you will also need to add the following to allow wasm to be loaded:

```js
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
  config.experiments = {
    ...config.experiments,
    topLevelAwait: true,
    asyncWebAssembly: true,
  };
  return config;
},
```