Skip to content

BundlingMode.LibraryAndApplication() does not work with sourcemap to false #435

Description

@mathieuleclaire

I guess it is a bug. I tried to build an application with multiple entry points as described here: https://scalacenter.github.io/scalajs-bundler/cookbook.html#several-entry-points. In my source I defined a very dummy code like this:

@JSExportTopLevel(name = "openmole_site")
@JSExportAll
object SiteJS {

def foo(): Unit = {
println("FOO")
}
}

with the webpackBundlingMode := BundlingMode.LibraryAndApplication() set in build.sbt. When executing in a browser console, I was only able to access to openmole_site object and not the the foo one. Turning the sourcemap to true fixed this issue; but it shouldn't be correlated, right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions