92aafcbcf1
<!-- Thanks for opening a PR! Your contribution is much appreciated. In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change that you're making: --> ## Summary - Added jsdoc typing for all examples using `next.config.js` - Added jsdoc typing for all examples using `tailwind.config.js` ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
11 lines
347 B
JavaScript
11 lines
347 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
webpack(config) {
|
|
config.output.webassemblyModuleFilename = 'static/wasm/[modulehash].wasm'
|
|
|
|
// Since Webpack 5 doesn't enable WebAssembly by default, we should do it manually
|
|
config.experiments = { ...config.experiments, asyncWebAssembly: true }
|
|
|
|
return config
|
|
},
|
|
}
|