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 .
# npm
npm install -g stash-mapfile
# yarn
yarn global add stash-mapfile
# pnpm
pnpm add -g stash-mapfile
Remove all mapfiles, can`t be restore
stash-mapfile
# or
stash-mapfile clean
Stash all mapfiles, can be restore
stash-mapfile stash
Restore all mapfiles
stash-mapfile restore
import {
stashMapFiles,
removeMapFiles,
restoreMapFiles
} from "stash-mapfile";
pnpm start
1. pnpm dev
2. npm link # yalc publish
MIT License Copyright 2022 zhixiaoqiang