Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use aurelia without module loaders?

Tags:

aurelia

I'd like to use aurelia in small mobile cordova apps. Is it possible to omit any module loaders like requirejs and use an aurelia bundle directly in a script tag like

  <script src="scripts/aurelia.js"></script>

?

Thanks, George

like image 625
g.breeze Avatar asked Sep 09 '15 09:09

g.breeze


1 Answers

You can use JSPM to build a self executing bundle complete with system.js, and then you only need to include that one script. (no other dependencies are required)

Check out the docs on production workflows for JSPM for more details: https://github.com/jspm/jspm-cli/blob/master/docs/production-workflows.md#creating-a-self-executing-bundle

like image 177
Tetious Avatar answered Sep 30 '22 17:09

Tetious