Skip to content

Commit eb0b5cf

Browse files
authored
chore(): Remove react-helmet (#201)
1 parent 74eab2e commit eb0b5cf

File tree

3 files changed

+7
-37
lines changed

3 files changed

+7
-37
lines changed

package-lock.json

Lines changed: 5 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@
2727
"prettier": "^3.4.2",
2828
"react": "19.1",
2929
"react-dom": "19.1",
30-
"react-helmet": "^6.1.0",
3130
"react-load-script": "^0.0.6",
3231
"starlight-typedoc": "^0.21.3",
3332
"thememirror": "^2.0.1",
3433
"typedoc-plugin-no-inherit": "^1.6.1",
3534
"typescript": "^5.4.2"
3635
},
3736
"engines": {
38-
"node": "^18.17.1 || ^20.3.0"
37+
"node": "^20.3.0 || ^22.16.0"
3938
},
4039
"packageManager": "[email protected]+sha512.0e9d42e92bd2318408ed81eaff2da5f78baf23ee7d12a6eed44a6e2901d0f29d7ab715d1b918ade601f72e769a824d9a5c322383f22bbbda5dd396e79de2a077",
4140
"devDependencies": {

src/components/CodeEditor/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { EditorView, basicSetup } from 'codemirror';
88
import * as fabric from 'fabric';
99
import { debounce } from '../../utils/debounce';
1010
import { useCallback, useEffect, useRef, useState } from 'react';
11-
import { Helmet } from 'react-helmet';
1211
import { espresso } from 'thememirror';
1312

1413
export const CodeEditor = ({ code: codeProp, children, canvasId, autoRun = true, runOnChange = true, canvasDown = false }) => {
@@ -87,9 +86,7 @@ export const CodeEditor = ({ code: codeProp, children, canvasId, autoRun = true,
8786

8887
return (
8988
<div className='not-content'>
90-
<Helmet>
91-
<script type="module">{code}</script>
92-
</Helmet>
89+
<script type="module">{code}</script>
9390
{canvasDown || children}
9491
<div ref={divRef} style={{ marginTop: '1rem' }} />
9592
<button onClick={() => runCallback([editorRef.current.state.doc.toString()], true)}>Run me</button>

0 commit comments

Comments
 (0)