Skip to content

Commit 132288a

Browse files
committed
fix configurations
1 parent 222b025 commit 132288a

File tree

6 files changed

+32986
-3859
lines changed

6 files changed

+32986
-3859
lines changed

.babelrc

Lines changed: 0 additions & 33 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

next.config.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
/* eslint-disable @typescript-eslint/no-var-requires */
33
const externallyEmbeddableIFrameResponseHeaders =
44
require("./src/shared-module/utils/responseHeaders").externallyEmbeddableIFrameResponseHeaders
5+
const svgoConfig = require("./src/shared-module/utils/svgoConfig")
56

67
const config = {
78
eslint: {
89
ignoreDuringBuilds: true,
910
},
10-
output: "standalone",
1111
async headers() {
1212
return [
1313
{
@@ -22,6 +22,32 @@ const config = {
2222
},
2323
]
2424
},
25+
output: "standalone",
26+
webpack(config) {
27+
config.module.rules.push({
28+
test: /\.svg$/i,
29+
issuer: /\.[jt]sx?$/,
30+
loader: "@svgr/webpack",
31+
options: {
32+
svgoConfig: svgoConfig,
33+
},
34+
})
35+
36+
return config
37+
},
38+
compiler: {
39+
emotion: {
40+
autoLabel: "always",
41+
labelFormat: "[dirname]--[filename]--[local]",
42+
},
43+
},
44+
experimental: {
45+
modularizeImports: {
46+
lodash: {
47+
transform: "lodash/{{member}}",
48+
},
49+
},
50+
},
2551
}
2652

2753
if (process.env.NEXT_PUBLIC_BASE_PATH) {

0 commit comments

Comments
 (0)