Merge pull request #22 from DoctorDerek/enable-react-strict-mode

Enable React Strict Mode in next.config.js
This commit is contained in:
Timothy 2021-04-13 10:00:09 +08:00 committed by GitHub
commit fbda3e5724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
})
module.exports = withBundleAnalyzer({
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
future: {
webpack5: true,