@huolala-tech/page-spy-plugin-mp-eval
v2.0.1
Published
Used for code evaluation in mini program.
Downloads
231
Keywords
Readme
English | 中文
@huolala-tech/page-spy-plugin-mp-eval
The MPEvalPlugin
is used in mini program SDK of PageSpy, making it possible to run dynamic scripts in the mini program environment.
Available mini program SDKs include:
- @huolala-tech/page-spy-wechat
- @huolala-tech/page-spy-alipay
- @huolala-tech/page-spy-uniapp
- @huolala-tech/page-spy-taro
[!CAUTION] When submitting the mini program for review, be sure to delete this plugin in the code, otherwise the review will fail.
Usage
// In your entry file like "main.ts"
import PageSpy from '@huolala-tech/page-spy-wechat';
import MPEvalPlugin from '@huolala-tech/page-spy-plugin-mp-eval';
// Register plugin
PageSpy.registerPlugin(new MPEvalPlugin());
// Init PageSpy
const pageSpy = new PageSpy();