Skip to content

Commit b605f66

Browse files
committed
Upgrade to next 12.
Use experimental support for styled components to enable SWC, a much faster alternative to webpack.
1 parent a01b558 commit b605f66

File tree

5 files changed

+409
-1417
lines changed

5 files changed

+409
-1417
lines changed

next-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
const config = {
55
images: {
66
loader: "custom"
7+
},
8+
experimental: {
9+
styledComponents: true
710
}
811
}
912

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"leaflet-search": "2.9.8",
1616
"leaflet.markercluster": "^1.4.1",
1717
"linkifyjs": "^3.0.0-beta.3",
18-
"next": "11",
18+
"next": "12",
1919
"next-on-netlify": "^2.9.0",
2020
"papaparse": "^5.3.0",
2121
"react": "^17.0.2",

tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"noEmit": true,
10+
"esModuleInterop": true,
11+
"module": "esnext",
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "preserve",
16+
"incremental": true
17+
},
18+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
19+
"exclude": ["node_modules"]
20+
}

0 commit comments

Comments
 (0)