diff --git a/src/index.ts b/src/index.ts index 82c336d..e584585 100644 --- a/src/index.ts +++ b/src/index.ts @@ -46,7 +46,7 @@ function cssInjectedByJsPlugin( if ( chunk.type === 'chunk' && - chunk.fileName.includes('.js') && + chunk.fileName.match(/.[cm]?js$/) != null && !chunk.fileName.includes('polyfill') ) { let topCode: string = '';