Skip to content

Commit

Permalink
add test case for #9053
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch0 committed Jun 25, 2019
1 parent c8f4dd1 commit a435c74
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/configCases/loaders/issue-9053/a.js
@@ -0,0 +1 @@
module.exports = require("c.js!=!loader1!./b.js");
1 change: 1 addition & 0 deletions test/configCases/loaders/issue-9053/b.js
@@ -0,0 +1 @@
module.exports = "b";
5 changes: 5 additions & 0 deletions test/configCases/loaders/issue-9053/index.js
@@ -0,0 +1,5 @@
it("should apply inline loaders before matchResource", function() {
var foo = require("./a");

expect(foo).toBe("d");
});
3 changes: 3 additions & 0 deletions test/configCases/loaders/issue-9053/node_modules/loader1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/configCases/loaders/issue-9053/node_modules/loader2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/configCases/loaders/issue-9053/webpack.config.js
@@ -0,0 +1,10 @@
module.exports = {
module: {
rules: [
{
test: /c\.js$/,
use: ["loader2"]
}
]
}
};

0 comments on commit a435c74

Please sign in to comment.