Skip to content

Commit

Permalink
Update default file pattern to include mjs and cjs extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jun 23, 2021
1 parent b855f27 commit 14f22a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function run(octokit, context, token) {

const plugin = new SizePlugin({
compression: getInput('compression'),
pattern: getInput('pattern') || '**/dist/**/*.js',
pattern: getInput('pattern') || '**/dist/**/*.{js,mjs,cjs}',
exclude: getInput('exclude') || '{**/*.map,**/node_modules/**}',
stripHash: stripHash(getInput('strip-hash'))
});
Expand Down

0 comments on commit 14f22a1

Please sign in to comment.