0

When running val bundle = (Compile / fastOptJS / webpack).value in my build.sbt, I get the following files in the 'bundle':

sources

What I am missing is the -fastopt-bundler.js.map.

If I check target/scala-2.12/scalajs-bundler/main the file is there!

The only setting of my build.sbt is:

webpackBundlingMode := BundlingMode.LibraryAndApplication()

pme
  • 14,156
  • 3
  • 52
  • 95
  • Do you see a line saying “Bundling dependencies with source maps” in the console? – Julien Richard-Foy Apr 23 '19 at 07:27
  • @JulienRichard-Foy: Yes, after `Fast optimizing` – pme Apr 23 '19 at 07:29
  • Only one file is expected to be generated by the `LibraryAndApplication` mode. It is not clear to me why it is named `-fastopt-library.js.map` instead of `-fastopt-bundle.js.map`. What does the `sourceMappingURL` link point to, in your `-fastopt-bundle.js.map` file? – Julien Richard-Foy Apr 23 '19 at 11:35
  • @JulienRichard-Foy: the only thing that is referenced is at the end of `-fastopt-bundle.js.map`: `"file":"scala-js-tutorial-fastopt-bundle.js"}` – pme Apr 23 '19 at 11:59
  • Sorry, I meant at the end of your `-fastopt-bundle.js` file. – Julien Richard-Foy Apr 23 '19 at 15:54
  • @JulienRichard-Foy: `//# sourceMappingURL=scala-js-tutorial-fastopt.js.map /n //# sourceMappingURL=scala-js-tutorial-fastopt-bundle.js.map` – pme Apr 24 '19 at 06:32
  • Then, something is probably wrong, can you please report your problem here? https://github.com/scalacenter/scalajs-bundler/issues/new – Julien Richard-Foy Apr 24 '19 at 09:18
  • @JulienRichard-Foy Ok - thanks - See https://github.com/scalacenter/scalajs-bundler/issues/290 – pme Apr 24 '19 at 10:04

1 Answers1

0

There is an open issue with scalajs-bundler Plugin:

https://github.com/scalacenter/scalajs-bundler/issues/290

pme
  • 14,156
  • 3
  • 52
  • 95