Add '-loader' suffix to all Webpack loader references

This commit is contained in:
Scott Addie
2016-11-19 14:20:52 -06:00
committed by Steve Sanderson
parent bbbcb5ef18
commit 3a4936dbf7
17 changed files with 36 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ import * as ko from 'knockout';
// This Knockout component loader integrates with Webpack's lazy-loaded bundle feature.
// Having this means you can optionally declare components as follows:
// ko.components.register('my-component', require('bundle?lazy!../some-path-to-a-js-or-ts-module'));
// ko.components.register('my-component', require('bundle-loader?lazy!../some-path-to-a-js-or-ts-module'));
// ... and then it will be loaded on demand instead of being loaded up front.
ko.components.loaders.unshift({
loadComponent: (name, componentConfig, callback) => {