diff --git a/README.md b/README.md index c6bfcf70..00282bcc 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ module.exports = (async () => { | `--source-maps` / `-s` | Output source maps. `--source-maps inline` for inline source maps. | Disabled | | `--no-exec` | Output a file which exports the input rather than executes it. | Exec enabled | | `--stats` | Output stats file.
Provide filename or `true` for `livepack-stats.json`. | Disabled | -| `--no-babel-cache` | Disable Babel's cache | Cache enabled | +| `--no-cache` | Disable instrumentation cache | Cache enabled | #### Config file @@ -187,7 +187,7 @@ You can set options in a `livepack.config.json` file rather than on command line "sourceMaps": true, "exec": true, "stats": false, - "babelCache": true + "cache": true } ``` @@ -255,7 +255,7 @@ require('livepack/register')( { |-|-|-|-| | `esm` | `boolean` | Set to `true` if codebase being serialized contains ECMAScript modules (`import x from 'x'`) | `false` | | `jsx` | `boolean` | Set to `true` if codebase being serialized contains JSX | `false` | -| `cache` | `boolean` | If `true`, Babel cache is used to speed up Livepack | `true` | +| `cache` | `boolean` | If `true`, instrumentation cache is used to speed up Livepack | `true` | These options correspond to CLI options, but sometimes named slightly differently. diff --git a/lib/cli.js b/lib/cli.js index 26e1c994..b1199517 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -147,8 +147,8 @@ const {argv} = yargs throw new Error('--stats option should have no value or string for name of stats file'); } }) - .option('babel-cache', { - description: 'Enable Babel cache', + .option('cache', { + description: 'Enable instrumentation cache', type: 'boolean', default: true }) @@ -179,7 +179,7 @@ const register = require('./register/index.js'); register({ esm: argv.esm, jsx: argv.jsx, - cache: argv.babelCache + cache: argv.cache }); // Serialize