@wizeworks/lens-cli
v0.3.0-alpha.14
Published
The WizeLens command line, and build plugins for Vite, webpack, and Next.js that upload browser source maps to a hub or the cloud.
Maintainers
Readme
@wizeworks/lens-cli
The WizeLens command line, and build plugins for Vite, webpack, and Next.js. They upload your browser source maps to a WizeLens hub or WizeLens Cloud, so minified stacks show your original file, line, function, and code.
npx @wizeworks/lens-cli sourcemaps upload ./dist --release 1.4.0 --url https://app.wizelens.com --token wl_ik_...
npx @wizeworks/lens-cli sourcemaps list --release 1.4.0// vite.config.ts
import { wizelensSourceMaps } from "@wizeworks/lens-cli/vite";
export default defineConfig({ plugins: [react(), wizelensSourceMaps()] });
// webpack.config.js
import { WizeLensSourceMapsPlugin } from "@wizeworks/lens-cli/webpack";
export default { plugins: [new WizeLensSourceMapsPlugin()] };
// next.config.mjs
import { withWizeLens } from "@wizeworks/lens-cli/next";
export default withWizeLens({ reactStrictMode: true });Settings come from flags or options, then the environment: WIZELENS_URL (or WIZELENS_HUB, default the local hub),
WIZELENS_TOKEN (or WIZELENS_HUB_TOKEN: a cloud ingest key or the hub token), WIZELENS_RELEASE (default the
package.json version), and WIZELENS_PROJECT (hub only).
See Source maps for the whole guide.
