Aurelia's loader implementation for webpack, enabling module loading and Hot Module Replacement (HMR) in Aurelia applications built with webpack. This package implements the Aurelia loader interface, allowing dynamic loading of modules, views, and resources. It supports Aurelia 2 (v2.x line, latest stable 2.2.5) with a universal bootstrapper and HMR capabilities, and is designed for use with webpack 4+. The library is actively maintained by the Aurelia team and provides compatibility with css-loader v4. It is part of the Aurelia ecosystem and should be used alongside aurelia-webpack-plugin. Key differentiators: native HMR support, eachModule iteration module, and caching of loading promises. Alternatives: aurelia-loader-nodejs for server-side rendering.
npm install aurelia-loader-webpackVerified import paths — ran on the pinned version, not inferred.
Shows how to register the AureliaLoaderWebpack in an Aurelia application and use PLATFORM.moduleName for module resolution.
Update your bootstrapping code to use the new loader API. Refer to the Aurelia 2 migration guide.
Upgrade to aurelia-loader-webpack@2.2.2 or later.
Do not return true from the eachModule callback unless you intend to stop iteration.
Use 'AureliaLoaderWebpack' instead of 'WebpackLoader' in imports.
Migrate to version 2.x and update your bootstrapper.
Run 'npm install aurelia-loader' to install the peer dependency.
Use 'aurelia.container.registerSingleton(Loader, AureliaLoaderWebpack)' instead of 'aurelia.use.plugin(...)'.
Run 'npm install aurelia-loader-webpack' and check your webpack resolve configuration.