Skip to content

Commit c9a7e90

Browse files
Update src/index.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
1 parent 573fef2 commit c9a7e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function createConfig(options, entry, format, writeMeta) {
449449
if (format === 'es' && !pkg.module && outputEntryFileName.endsWith('.mjs')) {
450450
stdout(
451451
yellow(
452-
'Warning: If "module" is not specified in your package.json, Microbundle will now output the ESM format with ".mjs" as the file extension in CJS packages. If this is not the desired behavior, please specify "module".',
452+
'Warning: your package.json does not specify {"type":"module"}. Microbundle assumes this is a CommonJS package and is generating ES Modules with the ".mjs" file extension.',
453453
),
454454
);
455455
}

0 commit comments

Comments
 (0)