Skip to content

Commit 2aa3a22

Browse files
committed
Make sample code more specific
1 parent a5de514 commit 2aa3a22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ This repository contains `scalajs-env-phantomjs` for Scala.js 1.x. In Scala.js
1212
// project/plugins.sbt
1313
addSbtPlugin("org.scala-js" % "sbt-scalajs-env-phantomjs" % "1.0.0")
1414

15+
// Add an explicit import if using project/*.scala
16+
import org.scalajs.jsenv.phantomjs.sbtplugin.PhantomJSEnvPlugin.autoImport._
17+
1518
// build.sbt (inside .settings(...) for multi-project builds)
16-
jsEnv := PhantomJSEnv().value
17-
scalaJSLinkerConfig ~= { _.withESFeatures(_.withUseECMAScript2015(false)) }
19+
Test / jsEnv := PhantomJSEnv().value
20+
Test / scalaJSLinkerConfig ~= { _.withESFeatures(_.withUseECMAScript2015(false)) }
1821
```
1922

2023
The last line is needed because Scala.js emits ECMAScript 2015 code by default,

0 commit comments

Comments
 (0)