diff --git a/scm-ui/ui-components/package.json b/scm-ui/ui-components/package.json index 4ef705c3a6..e2e5139ba6 100644 --- a/scm-ui/ui-components/package.json +++ b/scm-ui/ui-components/package.json @@ -12,9 +12,9 @@ "license": "BSD-3-Clause", "scripts": { "test": "jest", - "storybook": "NODE_ENV=development start-storybook -s ../ui-webapp/public,src/__resources__", + "storybook": "start-storybook -s ../ui-webapp/public", "storyshots": "jest --testPathPattern=\"storyshots.test.js\" --collectCoverage=false", - "update-storyshots": "jest --testPathPattern=\"storyshots.test.js\" --testNamePattern \".*Button\" --collectCoverage=false -u" + "update-storyshots": "jest --testPathPattern=\"storyshots.test.js\" --collectCoverage=false -u" }, "devDependencies": { "@scm-manager/ui-tests": "^2.0.0-SNAPSHOT", diff --git a/scm-ui/ui-components/src/SyntaxHighlighter.js b/scm-ui/ui-components/src/SyntaxHighlighter.js index 99fd38680d..fc69f920ed 100644 --- a/scm-ui/ui-components/src/SyntaxHighlighter.js +++ b/scm-ui/ui-components/src/SyntaxHighlighter.js @@ -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 = {