Skip to content

Commit c0f70ca

Browse files
authored
[BannerPlugin] change chunk.initial to chunk.isInitial()
1 parent bc29455 commit c0f70ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BannerPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ BannerPlugin.prototype.apply = function(compiler) {
2929
compiler.plugin("compilation", function(compilation) {
3030
compilation.plugin("optimize-chunk-assets", function(chunks, callback) {
3131
chunks.forEach(function(chunk) {
32-
if(options.entryOnly && !chunk.initial) return;
32+
if(options.entryOnly && !chunk.isInitial()) return;
3333
chunk.files.filter(ModuleFilenameHelpers.matchObject.bind(undefined, options)).forEach(function(file) {
3434
compilation.assets[file] = new ConcatSource(banner, "\n", compilation.assets[file]);
3535
});

0 commit comments

Comments
 (0)