Détail du package

aurelia-loader-default

aurelia44kMIT1.2.1

A default implementation of the loader interface compatible with system.js and require-based loaders.

aurelia, loader, modules

readme

aurelia-loader-default

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss CircleCI

This library is part of the Aurelia platform and contains an implementation of the loader interface which works with system.js and all require-based loader APIs.

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter. If you have questions look around our Discourse forums, chat in our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Platform Support

This library can be used in the browser only.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

    npm install
    
  3. Ensure that Gulp is installed. If you need to install it, use the following command:

    npm install -g gulp
    
  4. To build the code, you can now run:

    gulp build
    
  5. You will find the compiled code in the dist folder, available in three module formats: AMD, CommonJS and ES6.

  6. See gulpfile.js for other tasks related to generating the docs and linting.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:

    npm install -g karma-cli
    
  2. Ensure that jspm is installed. If you need to install it, use the following commnand:

    npm install -g jspm
    
  3. Install the client-side dependencies with jspm:

    jspm install
    
  4. You can now run the tests with this command:

    karma start
    

changelog

1.2.1 (2019-02-04)

1.2.0 (2019-01-18)

Bug Fixes

  • do not reject unsupported AMD loader (846befe)

Features

  • add support of dumber-module-loader (1d9433f)

1.1.0 (2018-12-01)

Bug Fixes

Features

  • loader: Added support for alameda amd loader (9b4bb40)

1.0.4 (2018-03-29)

Bug Fixes

  • fix commonjs build error in requirejs env (04f6d60), closes #47
  • improve compatibility with other AMD implementations. (0f8b5e8), closes #48

1.0.3 (2017-10-01)

Bug Fixes

  • index: use .keys instead of .entries close #43 (49948a1), closes #43

Performance Improvements

  • index: single array index for system key (f5e36b1)

1.0.2 (2017-03-23)

Bug Fixes

  • index: fix PLATFORM.eachModule for SystemJS@0.20.x (7c2c925)

1.0.1 (2017-02-21)

Bug Fixes

  • DefaultLoader: use config API for map (a4607b9)

1.0.0 (2016-07-27)

1.0.0-rc.1.0.0 (2016-06-22)

1.0.0-beta.1.2.2 (2016-05-10)

1.0.0-beta.1.2.1 (2016-04-13)

Bug Fixes

  • index: ensure correct cache lookup (b32ff61a)

1.0.0-beta.1.2.0(2016-03-22)

Bug Fixes

  • DefaultLoader: do not map name to address in requirejs mode (30016b6e)

1.0.0-beta.1.1.3 (2016-02-25)

Bug Fixes

1.0.0-beta.1.1.2 (2016-02-08)

Bug Fixes

  • index: properly normalize for systemjs (aa3c4813)

1.0.0-beta.1.1.0 (2016-01-29)

Features

  • all: update jspm meta; core-js; aurelia deps (7777dfcc)

1.0.0-beta.1.0.2 (2016-01-08)

Features

  • all: remove internal normalizeSync use and add normalize impl (3c323466)

1.0.0-beta.1.0.1 (2015-11-17)

Bug Fixes

  • index: firefox can die on some module getter accessors (97dee32c)

1.0.0-beta.1 (2015-11-16)

0.12.0 (2015-11-10)

Bug Fixes

  • text-template-loader: update to latest template entry api (9fd102dc)

0.11.2 (2015-10-13)

Bug Fixes

  • all:
    • remove web components and html imports (5e40af0f)
    • improve the template loader interface and html imports lookup (dec84529)
    • differentiate between real, polyfill and fake system (09767418)
    • update compiler (11498313)
  • build:
    • update linting, testing and tools (9b8935a2)
    • add missing bower bump (a3e96402)
  • index:
    • sometimes undefined modules list in eachModule iterator (fe4adddc)
    • incorrect variable name in require-based default loader code (4cdf9df5, closes #27)
    • add missing import (8adcd049)
    • remove unnecessary URL polyfill code (55d70449)
    • fix typos in spelling of Promise (1d0b43f0)
    • various url canonicalization bugs (b373ef6d)
    • prepare loader for jspm beta (62b18e68)
    • remove for..of to improve perf (b8cce178)
  • loadTemplate: check url has baseViewUrl (fb06ca6b)
  • loader:
    • plugin api fetch causes problems with safari (7788af12)
    • change plugin name to view (4c592bec)
    • correct name of exported DefaultLoader class (eb179a30)
    • update to work with new origin implementation (a9072680)
    • don't set target on frozen objects (ebe91ff2)
    • loadModule should check for baseUrl (7ce79f1c)
    • incorrect paths passes to systemjs loader (066bb5d7)
  • origin: short-circuit module registry search on origin location success (26a2906c)
  • package:
  • test: incorrect constructor used with jasmine.any (9b21817a)
  • url: Internet Explorer (5b1496cb)

Features

  • all:
    • implement PAL (78db72ec)
    • introduce template loaders; one for html imports and one for text (babe9484)
    • add more type info (f12bbca5)
    • add support for view bundles (05d333a9)
    • implement the new loadText api for the default loader (e316be6d, closes #4)
    • new loader-plugin-based remplate loader (ab694b12)
    • remove system hack; polyfill system for require api; tag through import calls (7d89aceb)
  • build: update compiler and switch to register module format (762fbfc9)
  • docs:
    • generate api.json from .d.ts file (b33a7888)
    • generate api.json from .d.ts file (3602db67)
  • index:
    • ensure that DefaultLoader is set as the platfrom loader (b8e1fb97)
    • add new loader methods and encapsulate loader better (6ee47165)
    • add textPluginName property to the default loader (99d74421)
  • loader:
    • add System.forEachModule registry iteration (a5f983b4)
    • add loadModule base url override (d11cb589)

0.11.1 (2015-10-13)

Bug Fixes

  • all:
    • remove web components and html imports (5e40af0f)
    • improve the template loader interface and html imports lookup (dec84529)
    • differentiate between real, polyfill and fake system (09767418)
    • update compiler (11498313)
  • build:
    • update linting, testing and tools (9b8935a2)
    • add missing bower bump (a3e96402)
  • index:
    • incorrect variable name in require-based default loader code (4cdf9df5, closes #27)
    • add missing import (8adcd049)
    • remove unnecessary URL polyfill code (55d70449)
    • fix typos in spelling of Promise (1d0b43f0)
    • various url canonicalization bugs (b373ef6d)
    • prepare loader for jspm beta (62b18e68)
    • remove for..of to improve perf (b8cce178)
  • loadTemplate: check url has baseViewUrl (fb06ca6b)
  • loader:
    • plugin api fetch causes problems with safari (7788af12)
    • change plugin name to view (4c592bec)
    • correct name of exported DefaultLoader class (eb179a30)
    • update to work with new origin implementation (a9072680)
    • don't set target on frozen objects (ebe91ff2)
    • loadModule should check for baseUrl (7ce79f1c)
    • incorrect paths passes to systemjs loader (066bb5d7)
  • origin: short-circuit module registry search on origin location success (26a2906c)
  • package:
  • test: incorrect constructor used with jasmine.any (9b21817a)
  • url: Internet Explorer (5b1496cb)

Features

  • all:
    • implement PAL (78db72ec)
    • introduce template loaders; one for html imports and one for text (babe9484)
    • add more type info (f12bbca5)
    • add support for view bundles (05d333a9)
    • implement the new loadText api for the default loader (e316be6d, closes #4)
    • new loader-plugin-based remplate loader (ab694b12)
    • remove system hack; polyfill system for require api; tag through import calls (7d89aceb)
  • build: update compiler and switch to register module format (762fbfc9)
  • docs:
    • generate api.json from .d.ts file (b33a7888)
    • generate api.json from .d.ts file (3602db67)
  • index:
    • ensure that DefaultLoader is set as the platfrom loader (b8e1fb97)
    • add new loader methods and encapsulate loader better (6ee47165)
    • add textPluginName property to the default loader (99d74421)
  • loader:
    • add System.forEachModule registry iteration (a5f983b4)
    • add loadModule base url override (d11cb589)

0.11.0 (2015-10-13)

Bug Fixes

  • all:
    • remove web components and html imports (5e40af0f)
    • improve the template loader interface and html imports lookup (dec84529)
    • differentiate between real, polyfill and fake system (09767418)
    • update compiler (11498313)
  • build:
    • update linting, testing and tools (9b8935a2)
    • add missing bower bump (a3e96402)
  • index:
    • add missing import (8adcd049)
    • remove unnecessary URL polyfill code (55d70449)
    • fix typos in spelling of Promise (1d0b43f0)
    • various url canonicalization bugs (b373ef6d)
    • prepare loader for jspm beta (62b18e68)
    • remove for..of to improve perf (b8cce178)
  • loadTemplate: check url has baseViewUrl (fb06ca6b)
  • loader:
    • plugin api fetch causes problems with safari (7788af12)
    • change plugin name to view (4c592bec)
    • correct name of exported DefaultLoader class (eb179a30)
    • update to work with new origin implementation (a9072680)
    • don't set target on frozen objects (ebe91ff2)
    • loadModule should check for baseUrl (7ce79f1c)
    • incorrect paths passes to systemjs loader (066bb5d7)
  • origin: short-circuit module registry search on origin location success (26a2906c)
  • package:
  • test: incorrect constructor used with jasmine.any (9b21817a)
  • url: Internet Explorer (5b1496cb)

Features

  • all:
    • implement PAL (78db72ec)
    • introduce template loaders; one for html imports and one for text (babe9484)
    • add more type info (f12bbca5)
    • add support for view bundles (05d333a9)
    • implement the new loadText api for the default loader (e316be6d, closes #4)
    • new loader-plugin-based remplate loader (ab694b12)
    • remove system hack; polyfill system for require api; tag through import calls (7d89aceb)
  • build: update compiler and switch to register module format (762fbfc9)
  • docs:
    • generate api.json from .d.ts file (b33a7888)
    • generate api.json from .d.ts file (3602db67)
  • index:
    • ensure that DefaultLoader is set as the platfrom loader (b8e1fb97)
    • add new loader methods and encapsulate loader better (6ee47165)
    • add textPluginName property to the default loader (99d74421)
  • loader:
    • add System.forEachModule registry iteration (a5f983b4)
    • add loadModule base url override (d11cb589)

0.10.0 (2015-09-04)

Bug Fixes

  • all:
    • remove web components and html imports (5e40af0f)
    • improve the template loader interface and html imports lookup (dec84529)
  • build: update linting, testing and tools (9b8935a2)
  • index:
    • add missing import (8adcd049)
    • remove unnecessary URL polyfill code (55d70449)
    • fix typos in spelling of Promise (1d0b43f0)

Features

  • all: introduce template loaders; one for html imports and one for text (babe9484)
  • docs:
    • generate api.json from .d.ts file (b33a7888)
    • generate api.json from .d.ts file (3602db67)
  • index: add textPluginName property to the default loader (99d74421)

0.9.5 (2015-08-14)

Features

0.9.4 (2015-08-11)

Bug Fixes

0.9.3 (2015-08-05)

Bug Fixes

  • index: various url canonicalization bugs (b373ef6d)

0.9.2 (2015-08-05)

Bug Fixes

  • index: prepare loader for jspm beta (62b18e68)

0.9.1 (2015-07-29)

  • improve output file name

0.9.0 (2015-07-02)

Bug Fixes

  • all: differentiate between real, polyfill and fake system (09767418)
  • origin: short-circuit module registry search on origin location success (26a2906c)

0.8.0 (2015-06-08)

Features

  • all: add support for view bundles (05d333a9)
  • loader: add System.forEachModule registry iteration (a5f983b4)

0.7.0 (2015-04-30)

Bug Fixes

  • index: remove for..of to improve perf (b8cce178)

Features

  • all: implement the new loadText api for the default loader (e316be6d, closes #4)

0.6.0 (2015-04-09)

Bug Fixes

0.5.0 (2015-03-24)

Bug Fixes

  • loader:
    • plugin api fetch causes problems with safari (7788af12)
    • change plugin name to view (4c592bec)

Features

  • all: new loader-plugin-based remplate loader (ab694b12)

0.4.3 (2015-02-28)

Bug Fixes

  • package: change jspm directories (176b06ec)

0.4.2 (2015-02-27)

Bug Fixes

  • build: add missing bower bump (a3e96402)
  • package: update dependencies (496f8c3e)

0.4.1 (2015-01-24)

Bug Fixes

  • package: update reps and fix bower semver ranges (5c5b5016)

0.4.0 (2015-01-22)

Bug Fixes

  • loader:
    • correct name of exported DefaultLoader class (eb179a30)
    • update to work with new origin implementation (a9072680)
  • package: update dependencies (0255ec9a)

Features

  • all: remove system hack; polyfill system for require api; tag through import calls (7d89aceb)

0.3.2 (2015-01-12)

Bug Fixes

  • package: update Aurelia dependencies (21511995)

0.3.1 (2015-01-06)

Bug Fixes

  • loader: don't set target on frozen objects (ebe91ff2)

0.3.0 (2015-01-06)

Features

  • build: update compiler and switch to register module format (762fbfc9)
  • loader: add loadModule base url override (d11cb589)

0.2.2 (2014-12-18)

Bug Fixes

  • package: update to the latest version of path (792ca4f5)

0.2.1 (2014-12-17)

Bug Fixes

  • package: add missing dependency (0462d8b2)

0.2.0 (2014-12-17)

Bug Fixes

  • loadTemplate: check url has baseViewUrl (fb06ca6b)
  • package: update dependencies to latest versions (9da71e4c)

0.1.2 (2014-12-11)

Bug Fixes

  • package: updating dependencies (eb8b0aed)

0.1.1 (2014-12-11)

Bug Fixes

  • loader: loadModule should check for baseUrl (7ce79f1c)

0.1.0 (2014-12-11)

Bug Fixes

  • loader: incorrect paths passed to systemjs loader (066bb5d7)