ARCHIVED: Invalid issue. See correct example in fixed-version
branch.
In this project the library-part contains a file with native Javascript code included with jsdependencies and a Scala.js facade class for it. The test case shows that readin the version string from the Javascript code works within the project.
In application-part we are trying to use library-part as a dependency.
Trying to access the Javascript value here fails with the same test setup. Furthermore, when running Update: The fastOptJS
no dependency file is generated.fixed-version
branch contains a correct example of how to do this. The jsdependencies plugin must be present in the application-part, too!
cd library-part
and thensbt
test
(this works)publishLocal
exit
sbtcd ../application-part
and thensbt
test
(this fails)fastOptJS
(succeeds, but does not generate file with dependencies to include inindex-dev.html
)