Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 21 23:39
    Atry commented #288
  • Jan 18 17:38
    vhiairrassary synchronize #390
  • Jan 18 17:32
    vhiairrassary edited #393
  • Jan 18 17:30
    vhiairrassary edited #393
  • Jan 18 17:26
    vhiairrassary converted_to_draft #393
  • Jan 18 17:26
    vhiairrassary opened #393
  • Jan 18 17:06
    vhiairrassary edited #390
  • Jan 18 17:06
    vhiairrassary edited #390
  • Jan 18 17:02
    vhiairrassary edited #390
  • Jan 18 16:59
    vhiairrassary synchronize #390
  • Jan 18 09:00
    vhiairrassary commented #390
  • Jan 18 08:57
    vhiairrassary edited #390
  • Jan 18 08:56
    vhiairrassary edited #390
  • Jan 18 08:54
    vhiairrassary synchronize #390
  • Jan 18 08:07
    vhiairrassary edited #390
  • Jan 18 07:36
    vhiairrassary edited #390
  • Jan 18 07:35
    vhiairrassary edited #390
  • Jan 18 07:35
    vhiairrassary edited #390
  • Jan 11 09:15
    vhiairrassary edited #390
  • Jan 11 08:31
    vhiairrassary commented #287
nafg
@nafg
Hi is a release planned?
nafg
@nafg
Hmm what about support for scalajs 1.3?
Julien Richard-Foy
@julienrf
@nafg I am not sure what the plans are. Sébastien plans to add support for Scala.js 1.3. Then we need a contributor to step up to make a release.
Carlos Quiroz
@cquiroz
Looking at the release notes with module splitting seems would have a non trivial impact on bundler
Sébastien Doeraene
@sjrd
At first we'll make a release that makes it work with 1.3.0 but without module splitting.
Then we can think about how to support and leverage module splitting in scalajs-bundler.
Binh Nguyen
@ngbinh
@julienrf now that we have scala.js 1.3.0 support, can you please cut a new release for scalajs bundler?
nafg
@nafg
@ngbinh IIUC @sjrd is already working on it
Binh Nguyen
@ngbinh
@nafg ah ok, thanks
nafg
@nafg
@ngbinh see above conversation
Binh Nguyen
@ngbinh
The PR to support scala.js 1.3.0 is already merged in scalajs bundler master. I probably can fetch and publish a private version my own but wondering if a new version should be cut soon
Sébastien Doeraene
@sjrd
Yes, today.
Binh Nguyen
@ngbinh
awesome! Thanks
Sébastien Doeraene
@sjrd
I have published 0.20.0 with support for Scala.js 1.3.0.
Carlos Quiroz
@cquiroz
@sjrd Thanks a lot, seems to be working fine
Carlos Quiroz
@cquiroz
Are you planning to add support to multiple modules or is it something for community contributions?
Sébastien Doeraene
@sjrd
A community contribution would be most welcome :) I unfortunately have a zillion other things to do.
nafg
@nafg
It would be nice if the npmDependencies -> package.json stuff were a separate plugin from the bundling stuff
Sébastien Doeraene
@sjrd
Yes, that too. At least a separate AutoPlugin, even if in the same artifact at the beginning.
Dan Di Spaltro
@dispalt
yeah agreed and good point
Carlos Quiroz
@cquiroz
I guess it is basically making it produce the scalajs.webpack.js file to a given dir
nafg
@nafg
@cquiroz wdym
unarist
@unarist
looks like release notes are not pushed to the website?
Jason Pickens
@steinybot
Any idea why I’m guessing weird relative paths in my source map? Such as:
[error] Module Warning (from ./node_modules/scalajs-friendly-source-map-loader/index.js):
[error] (Emitted value instead of an instance of Error) Cannot find source file '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala': Error: Can't resolve '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala' in '/Users/jason/source/erp/erp-front/target/scala-2.12/scalajs-bundler/main’
Where is /home/nick/ even coming from? Possibly related to scalacenter/scalajs-bundler#173. Maybe I ought to ask in the scalajs channel.
Sina
@sinaghaffari
Hi everyone. I'm having a lot of trouble figuring out how to bundle things like fonts using scalajs-bundler. I'm using scalacss to define font-faces which have "url(...)"s in them. I've tried a bunch of different things, but can't seem to get scalajs-bundler to actually recognize that the fonts are being referenced and including them within the bundle
Carlos Quiroz
@cquiroz
You probably need to specify a font loader on your webpack configuration
If the url is to some external site it should just work
Sina
@sinaghaffari
The url is to a local directory relative to the scala file
so something like ../../../../public/fonts/My-Font.eot
I defined a file-loader in my webpack config
Sina
@sinaghaffari
Im actually not sure if the url should be relative to the .scala source file, or the compiled js file, or the bundled js file
Carlos Quiroz
@cquiroz
that’s tricky, it has to be relative to the bundled file
but I’ve used aliases pointing to a resources dir
Sina
@sinaghaffari
I gave up and used an external url :(
I figure that the same server that's serving the JS will serve the font, so there wont be any problems there
Carlos Quiroz
@cquiroz
e..g.
const resourcesDir = path.resolve(rootDir, "../common/src/main/resources”);
and then I need to add tha to the search dir
  resolve: {
     alias: {
       resources: resourceDir
That lets you refer on you import something like resources/fonts/etc
Domantas Petrauskas
@dope9967
Hi, maybe there's some example project on how to make sbt-web-scalajs-bundler work with akka http? I tried adapting Play example, but somethings missing - assets do not seem to link up in classpath, I'm guessing Play provides some helpful settings under the hood and Akka doesn't.
Domantas Petrauskas
@dope9967
Or maybe I have more of a sbt-web issue, because Scala.js bundle does appear in server module's /target
Domantas Petrauskas
@dope9967
Just for reference, my issue is with simply with IntelliJ - sbt run or sbt ~reStart work just fine
Julien Richard-Foy
@julienrf
@dope9967 Maybe this is an issue with IntelliJ then?
Domantas Petrauskas
@dope9967
@julienrf yes, maybe I didn't phrase this most correctly, but my last message was to just note that the issue is "solved" - it's IntelliJ's classpath issue, not related to this plugin. Though it works both from sbt shell and sbt Run/Debug configurations, issue arises when server is ran as simple application from the main class through Run/Debug configurations, so it's not completely unusable, just got to fallback to sbt everywhere.
Adrien Piquerez
@adpi2
Hi! I have a .jpeg file in src/main/resources and I would like it to be bundled when I run fastOptJS / webpack. I guess that file should be automatically copied to target/scala-2.13/scalajs-bundler/mainbut how can I do that properly?
Julien Richard-Foy
@julienrf
Hello, it should not be in src/main/resources but in src/main/js
Then you also need to configure webpack to use an image loader