Yuki Takei 3 лет назад
Родитель
Сommit
47ccd71599

+ 2 - 2
packages/presentation/package.json

@@ -29,12 +29,12 @@
     "@marp-team/marp-core": "^3.4.2",
     "@types/reveal.js": "^4.4.1",
     "eslint-plugin-regex": "^1.8.0",
-    "react-markdown": "^8.0.3",
     "reveal.js": "^4.4.0"
   },
   "peerDependencies": {
     "next": "~12.2",
     "react": "^18.2.0",
-    "react-dom": "^18.2.0"
+    "react-dom": "^18.2.0",
+    "react-markdown": "^8.0.3"
   }
 }

+ 1 - 1
packages/presentation/src/components/Slides.tsx

@@ -3,7 +3,7 @@ import React from 'react';
 // import { Marp } from '@marp-team/marp-core';
 // import { Element } from '@marp-team/marpit';
 // import Head from 'next/head';
-import { ReactMarkdown } from 'react-markdown/lib/react-markdown';
+import ReactMarkdown from 'react-markdown';
 
 import type { PresentationOptions } from '../consts';
 import * as extractSections from '../services/renderer/extract-sections';

+ 1 - 1
packages/presentation/vite.config.ts

@@ -16,7 +16,7 @@ export default defineConfig({
       formats: ['es'],
     },
     rollupOptions: {
-      external: ['react', 'react-dom'],
+      external: ['react', 'react-dom', 'react-markdown'],
       output: {
         globals: {
           react: 'React',