You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current version of src/mermaid.js generates bad code (YUI Compressor doesn't accept it) in dist/mermaid.js
Problem:
nodes = nodes === undefined ? document.querySelectorAll('.mermaid')
: typeof nodes === 'string' ? document.querySelectorAll(nodes)
: nodes instanceof Node ? [nodes]
/*! Last case - sequence config was passed pick next */
: nodes;
Solves problem:
nodes = nodes === undefined ? document.querySelectorAll('.mermaid')
: typeof nodes === 'string' ? document.querySelectorAll(nodes)
: nodes instanceof Node ? [nodes]
: nodes; // Last case - sequence config was passed pick next
Pull request is forthcoming
Log:
yuicompressor-2.4.8.jar dist/mermaid.js -o foo
[ERROR] in dist/mermaid.js
39901:60:missing : in conditional expression
[ERROR] in dist/mermaid.js
39902:6:syntax error
[ERROR] in dist/mermaid.js
1:0:Compilation produced 2 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 2 syntax errors.
at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:172)
at org.mozilla.javascript.Parser.parse(Parser.java:396)
at org.mozilla.javascript.Parser.parse(Parser.java:340)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:536)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
DSA010328:mermaid larry.kluger$ npm run dist
The text was updated successfully, but these errors were encountered:
Current version of
src/mermaid.js
generates bad code (YUI Compressor doesn't accept it) indist/mermaid.js
Problem:
Pull request is forthcoming
Log:
The text was updated successfully, but these errors were encountered: