Skip to content

Commit

Permalink
test for webpack#8293
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckFreiburger committed Nov 5, 2018
1 parent af123a8 commit dcd0d59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/configCases/plugins/define-plugin/index.js
Expand Up @@ -118,3 +118,10 @@ it("should follow renamings in var (issue 5215)", function() {
it("should check that runtimeValue callback argument is a module", function() {
expect(RUNTIMEVALUE_CALLBACK_ARGUMENT_IS_A_MODULE).toEqual(true);
});

it("should expand properly", function() {
var tmp = '';
expect(function() {
require('./' + A_DOT_J + tmp + 's');
}).not.toThrowError(ReferenceError, "A_DOT_J is not defined");
});
3 changes: 2 additions & 1 deletion test/configCases/plugins/define-plugin/webpack.config.js
Expand Up @@ -32,7 +32,8 @@ module.exports = {
function({ module }) {
return module instanceof Module;
}
)
),
A_DOT_J: '"a.j"'
})
]
};

0 comments on commit dcd0d59

Please sign in to comment.