Remove svg support in Playground

This commit is contained in:
2024-01-12 18:11:02 +08:00
parent ed4cef1c78
commit dc4e49343b
8 changed files with 33 additions and 47 deletions

View File

@@ -1,13 +1,13 @@
import React, { useState } from 'react'
import React from 'react'
import MonacoEditor from '@monaco-editor/react'
import { Loader } from 'esbuild-wasm'
import '@/components/Playground/Output/Transform/transform.scss'
import { useUpdatedEffect } from '@/util/hooks.tsx'
import { IFile, ITheme } from '@/components/Playground/shared.ts'
import Compiler from '@/components/Playground/compiler.ts'
import { cssToJs, jsonToJs } from '@/components/Playground/files.ts'
import { MonacoEditorConfig } from '@/components/Playground/CodeEditor/Editor/monacoConfig.ts'
import { addReactImport } from '@/components/Playground/utils.ts'
import { useUpdatedEffect } from '@/util/hooks'
import { IFile, ITheme } from '@/components/Playground/shared'
import { addReactImport } from '@/components/Playground/utils'
import { cssToJs, jsonToJs } from '@/components/Playground/files'
import Compiler from '@/components/Playground/compiler'
import { MonacoEditorConfig } from '@/components/Playground/CodeEditor/Editor/monacoConfig'
interface OutputProps {
file: IFile