mirror of https://github.com/webpack/webpack.git
add noParse test cases
This commit is contained in:
parent
bc754fc3ba
commit
44d0f4c5be
|
|
@ -0,0 +1,4 @@
|
|||
it("should correctly export stuff from not parsed modules", function() {
|
||||
require("./not-parsed-a").should.be.eql("ok");
|
||||
require("./not-parsed-b").should.be.eql("ok");
|
||||
});
|
||||
|
|
@ -0,0 +1 @@
|
|||
module.exports = "ok";
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Object.defineProperty(module, "exports", {
|
||||
get: function() {
|
||||
return "ok";
|
||||
}
|
||||
});
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
module.exports = {
|
||||
module: {
|
||||
noParse: /not-parsed/
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue