File tree 4 files changed +35
-16
lines changed
docs/01-app/04-api-reference/05-config/01-next-config-js
test/development/basic/barrel-optimization
4 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -19,28 +19,29 @@ module.exports = {
19
19
20
20
The following libraries are optimized by default:
21
21
22
- - ` lucide-react `
23
- - ` date-fns `
24
- - ` lodash-es `
25
- - ` ramda `
26
- - ` antd `
27
- - ` react-bootstrap `
28
- - ` ahooks `
29
22
- ` @ant-design/icons `
30
- - ` @headlessui/react `
31
23
- ` @headlessui-float/react `
24
+ - ` @headlessui/react `
32
25
- ` @heroicons/react/20/solid `
33
- - ` @heroicons/react/24/solid `
34
26
- ` @heroicons/react/24/outline `
35
- - ` @visx/visx `
36
- - ` @tremor/react `
37
- - ` rxjs `
38
- - ` @mui/material `
39
- - ` @mui/icons-material `
40
- - ` recharts `
41
- - ` react-use `
27
+ - ` @heroicons/react/24/solid `
42
28
- ` @material-ui/core `
43
29
- ` @material-ui/icons `
30
+ - ` @mui/icons-material `
31
+ - ` @mui/material `
32
+ - ` @phosphor-icons/react `
44
33
- ` @tabler/icons-react `
34
+ - ` @tremor/react `
35
+ - ` @visx/visx `
36
+ - ` ahooks `
37
+ - ` antd `
38
+ - ` date-fns `
39
+ - ` lodash-es `
40
+ - ` lucide-react `
45
41
- ` mui-core `
42
+ - ` ramda `
43
+ - ` react-bootstrap `
46
44
- ` react-icons/* `
45
+ - ` react-use `
46
+ - ` recharts `
47
+ - ` rxjs `
Original file line number Diff line number Diff line change @@ -1013,6 +1013,7 @@ function assignDefaults(
1013
1013
'@effect/opentelemetry' ,
1014
1014
'@material-ui/core' ,
1015
1015
'@material-ui/icons' ,
1016
+ '@phosphor-icons/react' ,
1016
1017
'@tabler/icons-react' ,
1017
1018
'mui-core' ,
1018
1019
// We don't support wildcard imports for these configs, e.g. `react-icons/*`
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { nextTestSetup } from 'e2e-utils'
16
16
'@heroicons/react' : '2.0.18' ,
17
17
'@visx/visx' : '3.3.0' ,
18
18
'recursive-barrel' : '1.0.0' ,
19
+ '@phosphor-icons/react' : '2.1.7' ,
19
20
} ,
20
21
} )
21
22
@@ -115,6 +116,11 @@ import { nextTestSetup } from 'e2e-utils'
115
116
expect ( html ) . toContain ( '<linearGradient' )
116
117
} )
117
118
119
+ it ( 'should support @phosphor-icons/react' , async ( ) => {
120
+ const html = await next . render ( '/phosphor-icons' )
121
+ expect ( html ) . toContain ( '<svg xmlns="http://www.w3.org/2000/svg"' )
122
+ } )
123
+
118
124
it ( 'should not break "use client" directive in optimized packages' , async ( ) => {
119
125
const html = await next . render ( '/client' )
120
126
expect ( html ) . toContain ( 'this is a client component' )
Original file line number Diff line number Diff line change
1
+ import { Horse , Heart , Cube } from '@phosphor-icons/react'
2
+
3
+ export default function Page ( ) {
4
+ return (
5
+ < >
6
+ < Horse />
7
+ < Heart color = "#AE2983" weight = "fill" size = { 32 } />
8
+ < Cube color = "teal" weight = "duotone" />
9
+ </ >
10
+ )
11
+ }
You can’t perform that action at this time.
0 commit comments