Skip to content

Commit dd6da37

Browse files
sbrunkalexarchambault
authored andcommitted
Call require with an array of dependencies. Fixes #37 (#38)
1 parent d299abf commit dd6da37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

almond/src/main/scala/plotly/Almond.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ object Almond {
7474
val json = Plotly.jsonSnippet(data, layout)
7575

7676
val js =
77-
s"""require('plotly', function(Plotly) {
77+
s"""require(['plotly'], function(Plotly) {
7878
| $baseJs
7979
|});
8080
""".stripMargin

0 commit comments

Comments
 (0)