@graphcommerce/next-config 3.1.5 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -35,6 +35,16 @@ function extendConfig(nextConfig) {
35
35
  ...(config.watchOptions ?? {}),
36
36
  ignored: ['**/.git/**', '**/node_modules/!(@graphcommerce)**', '**/.next/**'],
37
37
  };
38
+ if (!config.resolve)
39
+ config.resolve = {};
40
+ config.resolve.alias = {
41
+ ...config.resolve.alias,
42
+ '@mui/base': '@mui/base/modern',
43
+ '@mui/lab': '@mui/lab/modern',
44
+ '@mui/material': '@mui/material/modern',
45
+ '@mui/styled-engine': '@mui/styled-engine/modern',
46
+ '@mui/system': '@mui/system/modern',
47
+ };
38
48
  return typeof nextConfig.webpack === 'function' ? nextConfig.webpack(config, options) : config;
39
49
  },
40
50
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-config",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.1.5",
5
+ "version": "3.1.6",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "typings": "dist/index.d.ts",
@@ -13,14 +13,14 @@
13
13
  "prepack": "yarn build"
14
14
  },
15
15
  "dependencies": {
16
- "@lingui/loader": "^3.13.3",
16
+ "@lingui/loader": "^3.14.0",
17
17
  "js-yaml-loader": "^1.2.2",
18
18
  "next-transpile-modules": "^9.0.0",
19
19
  "webpack": "^5.73.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "type-fest": "^2.12.2",
23
- "typescript": "4.7.3"
23
+ "typescript": "4.7.4"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "next": "^12.1.2",
package/src/index.ts CHANGED
@@ -63,6 +63,16 @@ function extendConfig(nextConfig: NextConfig): NextConfig {
63
63
  ignored: ['**/.git/**', '**/node_modules/!(@graphcommerce)**', '**/.next/**'],
64
64
  }
65
65
 
66
+ if (!config.resolve) config.resolve = {}
67
+ config.resolve.alias = {
68
+ ...config.resolve.alias,
69
+ '@mui/base': '@mui/base/modern',
70
+ '@mui/lab': '@mui/lab/modern',
71
+ '@mui/material': '@mui/material/modern',
72
+ '@mui/styled-engine': '@mui/styled-engine/modern',
73
+ '@mui/system': '@mui/system/modern',
74
+ }
75
+
66
76
  return typeof nextConfig.webpack === 'function' ? nextConfig.webpack(config, options) : config
67
77
  },
68
78
  }