Even though I have moved onto Webpack sometime ago in Aurelia, lately I have been partly driven by frustration over how buggy things are with Webpack support in Aurelia at the moment, so I decided to see if Jspm 0.17 would work with Aurelia.
Without delving into unnecessary details, I got a skeleton setup with Aurelia and Jspm 0.17. Check it out here.
There is one remaining issue and that is the Aurelia Bundler is broken. This means bundling does not currently work with this skeleton. However, I am looking into a bundling solution that might not even need the plugin and just use the Jspm builder directly. Watch this space.
Be warned that Jspm 0.17 is currently beta, so it might have issues if used in production. This was more of a proof of concept to see if 0.17 worked with Aurelia.
And no, in the end I didn’t switch from Webpack. But I have been using the Requirejs app that gets generated via the CLI and I like its simplicity and stability.
The first paragraph
“Even though I have moved onto Webpack sometime ago in Aurelia, partly driven by frustration over how buggy things are with Webpack and Aurelia”
Is confusing to me. You moved to using webpack because of issues with it?
Have you successfully used karma-jspm to test a jspm solution? I’ve yet to find the correct configuration. If you have, I think it would be great to add karma to this example.
thanks
Bundling in JSPM works perfectly. Mind you, I didn’t use the skeleton and set it up from scratch using gulp.