@sparklapse/dots-react
v1.2.2
Published
The react glue for using dots.
Downloads
5
Readme
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:
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:
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.experiments = {
...config.experiments,
topLevelAwait: true,
asyncWebAssembly: true,
};
return config;
},