Skip to content

Commit f958b4f

Browse files
committed
doc: improve comment in patch minified tasks util
1 parent d4f216f commit f958b4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tasks/util/patch_minified.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ var BACK = '+");';
88
*
99
* so that plotly.min.js loads in Jupyter NBs, more info here:
1010
*
11-
* https://github.com/plotly/plotly.py/pull/545
11+
* - https://github.com/plotly/plotly.py/pull/545
12+
* - https://github.com/plotly/plotly.js/pull/914
13+
* - https://github.com/plotly/plotly.js/pull/1094
14+
*
15+
* For example, this routine replaces
16+
* 'require("+o(s)+")' -> 'require("+ o(s) +")'
17+
*
18+
* But works for any 1-letter variable that uglify-js may output.
1219
*
1320
*/
1421
module.exports = function patchMinified(minifiedCode) {

0 commit comments

Comments
 (0)