This repository was archived by the owner on Jan 16, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 MIT License http://www.opensource.org/licenses/mit-license.php
33 Author Tobias Koppers @sokra
44*/
5- function LoadersList ( list ) {
5+ function LoadersList ( list , context ) {
66 this . list = list || [ ] ;
7+ this . context = context ;
78 this . list . forEach ( function ( element ) {
89 if ( element === null || typeof element !== "object" )
910 throw new Error ( "Each element of the loaders list must be an object or array" ) ;
@@ -63,7 +64,7 @@ function getLoadersFromObject(element) {
6364LoadersList . prototype . matchPart = function matchPart ( str , test ) {
6465 if ( ! test ) return true ;
6566 var matcher = asMatcher ( test ) ;
66- return matcher ( str ) ;
67+ return matcher ( str , this . context ) ;
6768} ;
6869
6970LoadersList . prototype . match = function match ( str ) {
You can’t perform that action at this time.
0 commit comments