Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 8107442

Browse files
authored
chore(deps): upgrade main pkgs 2022 9 (#1368)
* chore: update deps & fix build error * chore: clean up warnings
1 parent c448dcc commit 8107442

File tree

7 files changed

+844
-700
lines changed

7 files changed

+844
-700
lines changed

next.config.js

+14-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// const webpack = require('webpack')
22

33
// next-plugins
4-
const withPlugins = require('next-compose-plugins')
5-
const withSourceMaps = require('@zeit/next-source-maps')()
6-
const withPWA = require('next-pwa')
4+
// const withPlugins = require('next-compose-plugins')
5+
// const withPWA = require('next-pwa')
76

87
const withBundleAnalyzer = require('@next/bundle-analyzer')({
98
enabled: process.env.ANALYZE === 'true',
@@ -12,23 +11,19 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
1211
// next-plugins end
1312

1413
// if move pwa config to witPlugins, it will not work
15-
const nextConfig = withPWA({
16-
swcMinify: false,
17-
productionBrowserSourceMaps: false,
18-
pwa: {
19-
dest: 'public',
20-
disable: process.env.NODE_ENV !== 'production',
21-
register: true,
22-
// scope: '/cp',
23-
sw: 'sw.js',
24-
},
25-
compiler: {
26-
// ssr and displayName are configured by default
27-
styledComponents: true,
28-
},
14+
const nextConfig = {
15+
swcMinify: true,
16+
productionBrowserSourceMaps: true,
17+
// pwa: {
18+
// dest: 'public',
19+
// disable: process.env.NODE_ENV !== 'production',
20+
// register: true,
21+
// // scope: '/cp',
22+
// sw: 'sw.js',
23+
// },
2924
// experimental: {
3025
// outputStandalone: true,
3126
// },
32-
})
27+
}
3328

34-
module.exports = withPlugins([withBundleAnalyzer, withSourceMaps], nextConfig)
29+
module.exports = withBundleAnalyzer(nextConfig)

0 commit comments

Comments
 (0)