Skip to content

Commit 33eb4ff

Browse files
authored
Merge pull request #3 from Leland/feature/firerequire
Add firing script
2 parents 3ee2403 + e7f2db7 commit 33eb4ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ function generateEpilog(chunkId, imports, exports) {
8181
window.define(${jsonName}, ${jsonDefineStubs}, function() { return __webpack_exports__[${jsonId}]; });`;
8282
}
8383

84+
if (imports.length !== 0) {
85+
// Immediately require script
86+
epilog += `
87+
window.require(['__webpack_export_${chunkId}'], function() {});`;
88+
}
89+
8490
epilog += `
8591
}());`;
8692

0 commit comments

Comments
 (0)