Closed sjrd closed 9 years ago
Well, technically requiresDOM
is not deprecated, it just overrides the default that is derived from the presence of RuntimeDOM
in the transitive dependencies. Still, RuntimeDOM
(or RuntimeDOM % "test"
) should be preferred, usually.
How would you explain it though? A newcomer wouldn't want to care about settings or all that stuff. Maybe just saying "if you depend on scala-js-dom, it'll use PhantomJS" will be enough.
Yes, you don't need to explain how it works or what it does exactly. You can basically keep all your current explanations intact. Just change the line of code. The text need not change.
Fixed. Note I didn't test this at all, I just take your word that it works =P
requiresDOM
is deprecated in favor ofjsDependencies += RuntimeDOM
. There are more info on this in Step 6 of the tutorial.