Skip to content

Commit 283c415

Browse files
committed
added tests for undefined and null variables in define option
1 parent e4d7ecc commit 283c415

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/browsertest/library2config.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ module.exports = {
88
]
99
},
1010
optimize: {
11-
maxChunks: 2,
11+
maxChunks: 2
1212
},
1313
define: {
14+
CONST_UNDEFINED: undefined,
15+
CONST_NULL: null,
1416
CONST_TRUE: true,
1517
CONST_FALSE: false,
1618
CONST_FUNCTION: function() { return "ok"; },

‎test/browsertest/node_modules/library2/lib/main.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)