-
-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(config): support pass false to plugins
- Loading branch information
1 parent
e47e8ea
commit c4dac9c
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/rspack/tests/configCases/plugins/issue-4949/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
it("pass false to plugins", function () { | ||
expect(STRING).toBe(undefined); | ||
}); |
10 changes: 10 additions & 0 deletions
10
packages/rspack/tests/configCases/plugins/issue-4949/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const rspack = require("@rspack/core"); | ||
|
||
/** @type {import("../../../../src/index").RspackOptions} */ | ||
module.exports = { | ||
plugins: [ | ||
false && new rspack.DefinePlugin({ | ||
STRING: '"string"', | ||
}) | ||
] | ||
}; |