mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
reenable code splitting for react-syntax-highlighter package
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
|
||||
// TODO fix code splitting in production
|
||||
// Storybook does not like the LightAsync import:
|
||||
// import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
|
||||
// so we should use the default import for development and the LightAsync for production
|
||||
import ReactSyntaxHighlighter from "react-syntax-highlighter";
|
||||
import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
|
||||
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user