dumi 2.4.15 → 2.4.16
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.
|
@@ -17,7 +17,7 @@ export const patchRoutes = ({ routes }) => {
|
|
|
17
17
|
const routeMeta = getRouteMetaById(route.id, { syncOnly: true });
|
|
18
18
|
|
|
19
19
|
if (routeMeta) {
|
|
20
|
-
if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.debug)) {
|
|
20
|
+
if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.frontmatter?.debug)) {
|
|
21
21
|
// hide route in production which set hide frontmatter
|
|
22
22
|
delete routes[route.id];
|
|
23
23
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.16",
|
|
4
4
|
"description": "📖 Documentation Generator of React Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"rc-util": "^5.38.0",
|
|
106
106
|
"react-copy-to-clipboard": "^5.1.0",
|
|
107
107
|
"react-error-boundary": "^4.0.10",
|
|
108
|
-
"react-intl": "^
|
|
108
|
+
"react-intl": "^7.0.0",
|
|
109
109
|
"react-loading-skeleton": "^3.1.1",
|
|
110
110
|
"react-simple-code-editor": "^0.13.1",
|
|
111
111
|
"rehype-autolink-headings": "^6.1.1",
|