diff --git a/index.js b/index.js index bdbe44f..d369223 100644 --- a/index.js +++ b/index.js @@ -23,6 +23,9 @@ PolyfillsPlugin.prototype.apply = function(compiler) { chunks.forEach(function(chunk) { if(!chunk.initial) return; chunk.files.forEach(function(file, i) { + if (!file.endsWith('.js')) { + return; + } compilation.assets[file] = new ConcatSource("/* Polyfills */\n", filesContent, compilation.assets[file]); }); }); diff --git a/package.json b/package.json index 04cd410..0c471b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-polyfills-plugin", - "version": "0.0.9", + "version": "0.0.10", "description": "Adds polyfills to bundle file, without magic.", "main": "index.js", "scripts": {