Skip to content

Commit

Permalink
fix: Corrects CSS output being overwritten when .cjs ext used
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Dec 22, 2021
1 parent 778ca3c commit 452fd99
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 @@ -483,7 +483,7 @@ function createConfig(options, entry, format, writeMeta) {
!!writeMeta &&
options.css !== 'inline' &&
options.output.replace(
/(\.(umd|cjs|es|m))?\.(mjs|[tj]sx?)$/,
/(\.(umd|cjs|es|m))?\.(mjs|cjs|[tj]sx?)$/,
'.css',
),
minimize: options.compress,
Expand Down

0 comments on commit 452fd99

Please sign in to comment.