Yuki Takei 3 лет назад
Родитель
Сommit
75d3a66602
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 4
      packages/presentation/src/components/Slides.tsx
  2. 1 1
      packages/presentation/vite.config.ts

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

@@ -2,7 +2,7 @@ import React from 'react';
 
 
 // import { Marp } from '@marp-team/marp-core';
 // import { Marp } from '@marp-team/marp-core';
 // import { Element } from '@marp-team/marpit';
 // import { Element } from '@marp-team/marpit';
-// import Head from 'next/head';
+import Head from 'next/head';
 import ReactMarkdown from 'react-markdown';
 import ReactMarkdown from 'react-markdown';
 
 
 import type { PresentationOptions } from '../consts';
 import type { PresentationOptions } from '../consts';
@@ -46,9 +46,9 @@ export const Slides = (props: Props): JSX.Element => {
 
 
   return (
   return (
     <>
     <>
-      {/* <Head>
-        <style>{css}</style>
-      </Head> */}
+      <Head>
+        {/* <style>{css}</style> */}
+      </Head>
       <ReactMarkdown {...rendererOptions}>
       <ReactMarkdown {...rendererOptions}>
         { children ?? '## No Contents' }
         { children ?? '## No Contents' }
       </ReactMarkdown>
       </ReactMarkdown>

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

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