Skip to content

zhixiaoqiang/stash-mapfile

Repository files navigation

Stash map files

stash source-map files,and restore them when you need.

principle-of-realization

NOTE!: This is to solve the inaccurate positioning of the source code of the miniprogram devtools breakpoint debugging .

Install

# npm
npm install -g stash-mapfile
# yarn
yarn global add stash-mapfile
# pnpm
pnpm add -g stash-mapfile

Usage

Clean

Remove all mapfiles, can`t be restore

stash-mapfile
# or
stash-mapfile clean

Stash

Stash all mapfiles, can be restore

stash-mapfile stash

Restore

Restore all mapfiles

stash-mapfile restore

Node Api

import {
  stashMapFiles,
  removeMapFiles,
  restoreMapFiles
} from "stash-mapfile";

Development

Local

pnpm start

Link

1. pnpm dev

2. npm link # yalc publish

License

MIT License Copyright 2022 zhixiaoqiang

About

stash source-map files,and restore them when you need

Resources

License

Stars

Watchers

Forks

Packages

No packages published