Stash map files

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

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

Development

Local

pnpm start

Link

1. pnpm dev

2. npm link # yalc publish

License

MIT License Copyright 2022 zhixiaoqiang

GitHub

View Github