Skip to content

Commit

Permalink
[#20] Support .mjs and .cjs file extension (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth authored Apr 16, 2022
1 parent 3b26450 commit 7917088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 7917088

Please sign in to comment.