update react-syntax-highlighter and split languages out of webapp bundle

This commit is contained in:
Sebastian Sdorra
2019-10-09 14:19:26 +02:00
parent 76a6bba80c
commit 6a2ad50be1
11 changed files with 128 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
// @flow
import React from "react";
import ReactSyntaxHighlighter from "react-syntax-highlighter";
import { arduinoLight } from "react-syntax-highlighter/dist/styles/hljs";
import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
type Props = {
language: string,