We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20f5290 commit 6592956Copy full SHA for 6592956
3 files changed
test/configCases/parsing/issue-14720/index.js
@@ -0,0 +1,7 @@
1
+it("should generate a chunk for a full require dependencies in require.ensure", done => {
2
+ require.ensure([], () => {
3
+ expect(require("./module").property).toBe(42);
4
+ expect(__STATS__.chunks.length).toBe(2);
5
+ done();
6
+ });
7
+});
test/configCases/parsing/issue-14720/module.js
@@ -0,0 +1 @@
+exports.property = 42;
test/configCases/parsing/issue-14720/webpack.config.js
@@ -0,0 +1,4 @@
+/** @type {import("../../../../").Configuration} */
+module.exports = {
+ mode: "production"
+};
0 commit comments