Skip to content

Commit 89ab03d

Browse files
authored
docs: Swapping out references of ES format to ESM (#778)
1 parent a415645 commit 89ab03d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Options
295295
-v, --version Displays current version
296296
-i, --entry Entry module(s)
297297
-o, --output Directory to place build files into
298-
-f, --format Only build specified formats (any of modern,es,cjs,umd or iife) (default modern,es,cjs,umd)
298+
-f, --format Only build specified formats (any of modern,esm,cjs,umd or iife) (default modern,esm,cjs,umd)
299299
-w, --watch Rebuilds on any change (default false)
300300
--pkg-main Outputs files analog to package.json main entries (default true)
301301
--target Specify your target environment (node or web) (default web)

src/prog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]);
66
export default handler => {
77
const ENABLE_MODERN = process.env.MICROBUNDLE_MODERN !== 'false';
88

9-
const DEFAULT_FORMATS = ENABLE_MODERN ? 'modern,es,cjs,umd' : 'es,cjs,umd';
9+
const DEFAULT_FORMATS = ENABLE_MODERN ? 'modern,esm,cjs,umd' : 'esm,cjs,umd';
1010

1111
const cmd = type => (str, opts) => {
1212
opts.watch = opts.watch || type === 'watch';

0 commit comments

Comments
 (0)