MCPcopy Index your code
hub / github.com/developit/microbundle / run

Function run

src/cli.js:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import logError from './log-error';
7
8const run = opts => {
9 microbundle(opts)
10 .then(({ output }) => {
11 if (output != null) stdout(output);
12 if (!opts.watch) process.exit(0);
13 })
14 .catch(err => {
15 process.exitCode = (typeof err.code === 'number' && err.code) || 1;
16 logError(err);
17 process.exit();
18 });
19};
20
21prog(run)(process.argv);

Callers

nothing calls this directly

Calls 2

microbundleFunction · 0.85
logErrorFunction · 0.85

Tested by

no test coverage detected