File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ This repository contains `scalajs-env-phantomjs` for Scala.js 1.x. In Scala.js
12
12
// project/plugins.sbt
13
13
addSbtPlugin(" org.scala-js" % " sbt-scalajs-env-phantomjs" % " 1.0.0" )
14
14
15
+ // Add an explicit import if using project/*.scala
16
+ import org .scalajs .jsenv .phantomjs .sbtplugin .PhantomJSEnvPlugin .autoImport ._
17
+
15
18
// 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 )) }
18
21
```
19
22
20
23
The last line is needed because Scala.js emits ECMAScript 2015 code by default,
You can’t perform that action at this time.
0 commit comments