You can achieve the same kind of functionality this way: ```js new webpack.BannerPlugin({ entryOnly: true, include: options.bundleName ? options.bundleName + ".js" : /\.js$/, raw: true, banner: 'console.log("Injected")', }).apply(compiler); ```