auto-monitor
v1.1.2
Published
Register global imports on demand for Vite and Webpack
Downloads
10
Maintainers
Readme
auto-monitor
#install
npm install auto-monitor
or
pnpm install auto-monitor
or
yarn add auto-monitor
vue react 的应用
import { detectDevice, error, event, monitor, performance, route } from 'auto-monitor'
monitor({
url: 'http://localhost:4000'
})
.use('detectDevice', detectDevice())
.use('performance', performance())
.use('event', event()).use('route', route())
.use('error', error()).run((e) => {
console.log(e)
return e
})