import '../../static/css/prism.css' ; if ( typeof window !== 'undefined' ) { require ( 'clipboard' ) ; } import Prism from 'prismjs/components/prism-core' ; const _WorkerGlobalScope = typeof WorkerGlobalScope === 'undefined' ? undefined : WorkerGlobalScope ; const _self = typeof window !== 'undefined' ? window : _WorkerGlobalScope !== undefined && self instanceof _WorkerGlobalScope ? self : { } ; _self . Prism = Prism ; import 'prismjs/plugins/toolbar/prism-toolbar.css' ; import 'prismjs/plugins/toolbar/prism-toolbar' ; if ( typeof window !== 'undefined' ) { require ( 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard' ) ; } import 'prismjs/components/prism-clike' ; import 'prismjs/components/prism-javascript' ; import 'prismjs/components/prism-markup' ; import 'prismjs/components/prism-jsx' ; import './prismBash' ; Prism . languages . typescript = Prism . languages . extend ( 'javascript' , { keyword : /\b(?:as|await|break|case|catch|continue|debugger|default|do|else|export|finally|for|from|if|import|in|instanceof|of|return|switch|throw|try|while|with|yield|require)\b/ , keywordBlue : /\b(?:async|class|const|delete|enum|extends|function|get|implements|interface|let|new|package|private|protected|public|set|static|super|this|typeof|var|module|declare|constructor|namespace|abstract|type|readonly)\b/ , builtin : /\b(?:string|Function|any|number|boolean|Array|symbol|console|void|null)\b/ } ) ; Prism . languages . ts = Prism . languages . typescript ; const typescript = Prism . util . clone ( Prism . languages . typescript ) ; Prism . languages . tsx = Prism . languages . extend ( 'jsx' , typescript ) ; export const PrismSetup = Prism ;