You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Creates multiple output formats for each entry (CommonJS, UMD & ESM).
13
+
- Creates multiple output formats for each entry (CommonJS, UMD & ESM)
8
14
9
15
## Installation
10
16
@@ -14,40 +20,54 @@ A zero-configuration bundler for tiny modules, powered by Rollup.
14
20
15
21
```js
16
22
{
17
-
"scripts": {
18
-
"build":"microbundle",
19
-
"dev":"microbundle watch"
20
-
}
23
+
"scripts": {
24
+
"build":"microbundle",
25
+
"dev":"microbundle watch"
26
+
}
21
27
}
22
28
```
23
29
24
30
## Usage
25
31
32
+
33
+
### `microbundle` / `microbundle build`
34
+
35
+
By default, microbundle will infer the location of your source entry file
36
+
(the root module in your program) from the `module` field in your `package.json`. It will infer the output directory and filename(s) from the `main` field.
37
+
38
+
### `microbundle watch`
39
+
40
+
Watches source files and rebuilds on any change.
41
+
42
+
26
43
```
27
44
microbundle [entries..]
28
45
29
46
Build once and exit
30
47
31
48
Commands:
32
-
cli.js build [entries..] Build once and exit [default]
49
+
cli.js build [entries..] Build once and exit [default]
33
50
cli.js watch [entries..] Rebuilds on any change
34
51
35
52
Options:
36
-
--version Show version number [boolean]
37
-
--entry, -i Entry module(s)
38
-
[string] [default: <package.module>]
39
-
--output, -o, -d Directory to place build files into
0 commit comments