File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,12 @@ Congratulations! You have successfully compiled and run your first Scala.js appl
81
81
The code is actually run by a JavaScript interpreter, namely Node.
82
82
83
83
** Source maps in Node.js** : To get your stack traces resolved on Node.js, you will have to install the ` source-map-support ` package.
84
+ It is usually best to install it locally for this project.
85
+ You can initialize a private ` package.json ` as follows:
86
+
87
+ $ npm init private
88
+
89
+ Then you can install ` source-map-support ` :
84
90
85
91
$ npm install source-map-support
86
92
@@ -335,13 +341,7 @@ jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
335
341
{% endhighlight %}
336
342
337
343
This will use the [ ` jsdom ` ] ( https://github.com/jsdom/jsdom ) library to simulate a DOM in Node.js.
338
- You need to install it separately.
339
- It is usually best to install it locally for this project.
340
- You can initialize a private ` package.json ` as follows:
341
-
342
- $ npm init private
343
-
344
- Then you can install jsdom:
344
+ Note that you need to install it separately using
345
345
346
346
$ npm install jsdom
347
347
You can’t perform that action at this time.
0 commit comments