Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mathieuleclaire opened this issue Sep 29, 2022 · 0 comments

Comments

@mathieuleclaire
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant