webpack/test/configCases/module/iife-multiple-entry-modules/test.js

8 lines
328 B
JavaScript
Raw Normal View History

2024-09-20 02:00:01 +08:00
const fs = require("fs");
const path = require("path");
2025-05-28 22:40:54 +08:00
it("IIFE should present for multiple entries", () => {
2024-09-20 02:00:01 +08:00
const source = fs.readFileSync(path.join(__dirname, "bundle0.mjs"), "utf-8");
expect(source).toContain(`This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.`);
2024-09-20 02:00:01 +08:00
});