Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 9a4ba5b

Browse files
committed
Removing 'pretty-format' as it's not compatible with the current 'uglifyjs' package that webpack uses.
1 parent d9edc7c commit 9a4ba5b

3 files changed

Lines changed: 6 additions & 29 deletions

File tree

App/containers/CodeContainer.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Form, Grid, Segment, Button, Icon } from 'semantic-ui-react';
66

77
import classNames from 'classnames';
88
import Dropzone from 'react-dropzone';
9-
import prettyFormat from 'pretty-format';
109

1110
import EditorContainer from '../containers/EditorContainer';
1211

@@ -103,6 +102,12 @@ class CodeContainer extends Component {
103102
if (done) flush();
104103
}
105104

105+
// TODO: replace this function with a proper one
106+
// right now the `pretty-format` npm package doesn't work with the uglify
107+
function prettyFormat (str) {
108+
return str;
109+
}
110+
106111
function capture() {
107112
const logs = [].map.call(arguments, (log) => {
108113
return prettyFormat(log);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"javascript-obfuscator": "^0.10.0",
3434
"less": "^2.7.1",
3535
"less-loader": "^2.2.3",
36-
"pretty-format": "^20.0.3",
3736
"react": "^15.3.1",
3837
"react-codemirror": "^0.2.6",
3938
"react-dom": "^15.3.1",

yarn.lock

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ ansi-regex@^2.0.0:
6767
version "2.0.0"
6868
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107"
6969

70-
ansi-regex@^2.1.1:
71-
version "2.1.1"
72-
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
73-
7470
ansi-regex@^3.0.0:
7571
version "3.0.0"
7672
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
@@ -79,12 +75,6 @@ ansi-styles@^2.2.1:
7975
version "2.2.1"
8076
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
8177

82-
ansi-styles@^3.0.0:
83-
version "3.2.0"
84-
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
85-
dependencies:
86-
color-convert "^1.9.0"
87-
8878
anymatch@^1.3.0:
8979
version "1.3.0"
9080
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507"
@@ -1246,20 +1236,10 @@ color-convert@^1.3.0:
12461236
version "1.5.0"
12471237
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.5.0.tgz#7a2b4efb4488df85bca6443cb038b7100fbe7de1"
12481238

1249-
color-convert@^1.9.0:
1250-
version "1.9.0"
1251-
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a"
1252-
dependencies:
1253-
color-name "^1.1.1"
1254-
12551239
color-name@^1.0.0:
12561240
version "1.1.1"
12571241
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689"
12581242

1259-
color-name@^1.1.1:
1260-
version "1.1.3"
1261-
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
1262-
12631243
color-string@^0.3.0:
12641244
version "0.3.0"
12651245
resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991"
@@ -3534,13 +3514,6 @@ preserve@^0.2.0:
35343514
version "0.2.0"
35353515
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
35363516

3537-
pretty-format:
3538-
version "20.0.3"
3539-
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-20.0.3.tgz#020e350a560a1fe1a98dc3beb6ccffb386de8b14"
3540-
dependencies:
3541-
ansi-regex "^2.1.1"
3542-
ansi-styles "^3.0.0"
3543-
35443517
private@^0.1.6, private@~0.1.5:
35453518
version "0.1.6"
35463519
resolved "https://registry.yarnpkg.com/private/-/private-0.1.6.tgz#55c6a976d0f9bafb9924851350fe47b9b5fbb7c1"

0 commit comments

Comments
 (0)