Skip to content

Commit f730570

Browse files
committed
Added test for vendor main flag
1 parent 82786ca commit f730570

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • test/configCases/commons-chunk-plugin/hot-multi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
require("./common");
22

33
module.exports = "vendor";
4+
5+
it("should have the correct main flag for multi vendor module", function() {
6+
var multiModule = __webpack_require__.c[module.parents[0]];
7+
multiModule.hot._main.should.be.eql(true);
8+
});

0 commit comments

Comments
 (0)