File tree Expand file tree Collapse file tree 4 files changed +27
-16
lines changed
packages/react-renderer-demo Expand file tree Collapse file tree 4 files changed +27
-16
lines changed Original file line number Diff line number Diff line change 31
31
"@mdx-js/react" : " ^1.4.5" ,
32
32
"@next/mdx" : " ^9.1.2" ,
33
33
"@patternfly/patternfly-next" : " ^1.0.175" ,
34
- "@patternfly/react-core" : " ~3.16.10 " ,
34
+ "@patternfly/react-core" : " ~3.129.3 " ,
35
35
"@patternfly/react-tokens" : " ^2.5.1" ,
36
36
"brace" : " ^0.11.1" ,
37
37
"clsx" : " ^1.0.4" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ const createIconsTransformPlugin = [
2
+ 'transform-imports' ,
3
+ {
4
+ '@patternfly/react-icons' : {
5
+ transform : ( importName ) =>
6
+ `@patternfly/react-icons/dist/js/icons/${ importName . split ( / (? = [ A - Z ] ) / ) . join ( '-' ) . toLowerCase ( ) } ` ,
7
+ preventFullImport : true ,
8
+ } ,
9
+ } ,
10
+ ] ;
11
+
12
+ module . exports = {
13
+ presets : [
14
+ [
15
+ 'next/babel' ,
16
+ {
17
+ 'transform-runtime' : {
18
+ useESModules : false ,
19
+ } ,
20
+ } ,
21
+ ] ,
22
+ ] ,
23
+ plugins : [ createIconsTransformPlugin ] ,
24
+ } ;
Original file line number Diff line number Diff line change 58
58
"@mdx-js/react" : " ^1.4.5" ,
59
59
"@next/mdx" : " ^9.0.5" ,
60
60
"@patternfly/patternfly-next" : " ^1.0.175" ,
61
- "@patternfly/react-core" : " ~3.16.10 " ,
61
+ "@patternfly/react-core" : " ~3.129.3 " ,
62
62
"@patternfly/react-tokens" : " ^2.5.1" ,
63
+ "babel-plugin-transform-imports" : " ^2.0.0" ,
63
64
"brace" : " ^0.11.1" ,
64
65
"clsx" : " ^1.0.4" ,
65
66
"docsearch.js" : " ^2.6.3" ,
You can’t perform that action at this time.
0 commit comments