Skip to content

Commit

Permalink
fix: sort loader regex by most used
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed May 30, 2020
1 parent f43179a commit f889ded
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/index.js
Expand Up @@ -32,18 +32,18 @@ function loader(content) {
return [ content ];
}

if (entryRegex.test(this.resourcePath)) {
return entryLoader.call(this, content);
}
if (internalsRegex.test(this.resourcePath)) {
return internalsLoader.call(this, content);
}
if (componentRegex.test(this.resourcePath)) {
return componentLoader.call(this, content);
}
if (modelRegex.test(this.resourcePath)) {
return modelLoader.call(this, content);
}
if (entryRegex.test(this.resourcePath)) {
return entryLoader.call(this, content);
}
if (internalsRegex.test(this.resourcePath)) {
return internalsLoader.call(this, content);
}

return [ content ];
}
Expand Down

0 comments on commit f889ded

Please sign in to comment.